NNGNews Posted September 5, 2012 Share Posted September 5, 2012 Hi all, I've a problem : is there a method to add more delivery costs when the client choose to pay with COD Cash on delivery ? We need to add the cost when the client choose the COD payments during the check-out of the order We dont' find where we can put them, sorry. Help ! PS We have 1.4.7 version Link to comment Share on other sites More sharing options...
NNGNews Posted September 5, 2012 Author Share Posted September 5, 2012 There are two ways to add the cost 1. Static price: path: modules/cashondelivery/validation.php in this path we will add static price line no:56 (this for order total) example: $total = $cart->getOrderTotal(true, Cart::BOTH) + static_price; line no:65 (this for display confirm page) example: $total = $smarty->assign(array( 'total' => $cart->getOrderTotal(true, Cart::BOTH)+static _price, 'this_path_ssl' => Tools::getShopDomainSsl(true, true).__PS_BASE_URI__.'modules/cashondelivery/' )); 2. Dynamic Price: we will customization on modules/cashondelivery/cashondelivery.php create back end dynamic input access THANK YOU VERY MUCH I also made the same question in the italian forum (we are italian), but here is more full of people ... a guy answered me to add this module http://www.prestashop.com/forums/index.php?app=core&module=attach§ion=attach&attach_id=57236 now we'll see which solution is more "light" THANKS AGAIN ! Link to comment Share on other sites More sharing options...
spemar Posted November 23, 2012 Share Posted November 23, 2012 Salve, non va con Prestashop 1.5.2 Link to comment Share on other sites More sharing options...
multidanze Posted February 27, 2013 Share Posted February 27, 2013 Hi, i have a problem with this mod... I have presta 1.5.2 and did this to the COD module as you describe it above. But when the client puts its order then in BackOffice i receive a "Payment error". How can i fix this? Thanks Link to comment Share on other sites More sharing options...
bettabi Posted October 8, 2013 Share Posted October 8, 2013 Ciao, Ho trovato una soluzione per Prestashop 1.5 su questa discussione: http://www.prestashop.com/forums/topic/211738-modulo-contrassegno-con-maggiorazione-cod-15/ Usando il modulo chashondeliveryplus.zip (scaricabile dalla discussione). Elisabetta Link to comment Share on other sites More sharing options...
DiegoGarciaBenito Posted November 9, 2015 Share Posted November 9, 2015 Hello all,I have tested the solution joe shan says but I have a problem, I get "Payment Error" message. I think this happens because I'm not updating the total cost of the order, so in the order mi price is X€ but in the payment the price is X€ + COD fee.How can I solve this situation? I don't know where I can update the price of the cart. I'm good at development but is the first time I've to edit prestashop code.I'd like to add an product to the cart with the details of de fee but is not mandatory. I think add the fee to shipment price is ok for me.Thanks in advantage. Link to comment Share on other sites More sharing options...
Recommended Posts