hei Posted April 4, 2016 Share Posted April 4, 2016 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 Link to comment Share on other sites More sharing options...
bellini13 Posted April 4, 2016 Share Posted April 4, 2016 Why not create a carrier with free shipping, and name the carrier "pick up at store" ? Link to comment Share on other sites More sharing options...
hei Posted April 5, 2016 Author Share Posted April 5, 2016 Because atm i'm using a module "Marketplace Seller Shipping" that process shipping in one ways. So, i need to implement a payment that process only the cost of product Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now