Jump to content

Need to remove shipping cost from payment mode


hei

Recommended Posts

Hi,

 

I've duplicate COD module and create Cash on Store. ATM i'm able to print products price, without shipping cost, in validation.tpl:

 

-validation.php:

 

public function initContent()
{
parent::initContent();
 
$this->context->smarty->assign(array(
'total' => $this->context->cart->getOrderTotal(true, Cart::ONLY_PRODUCTS),
'this_path' => $this->module->getPathUri(),//keep for retro compat
'this_path_cod' => $this->module->getPathUri(),
'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/'.$this->module->name.'/'
));
 
$this->setTemplate('validation.tpl');
}
 
The problem is that: when click on confirmation button, by default, a new order will created with total price = shipping cost+product cost. How i can remove ? (i want to have on DB only price of products without shipping)
 
 
Thx in advance
Matteo

post-1139724-0-99037700-1459768554_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...