ruslyrossi Posted September 24, 2013 Share Posted September 24, 2013 (edited) Hi, this is my first experience using prestashop so im not sure how to do it, ok i want to add extra fees when customer checkout, this fee base on states(actually just 2 states) : if customer delivery address(states) match with states ABC and "total products price" is more than $88 then add $10 to shipping. Right now im able to update "Total shipping", but i cant update "Total" Path : controllers/ParentOrderController.php LIne +- 280 self::$smarty->assign($summary); self::$smarty->assign(array( 'token_cart' => Tools::getToken(false), 'isVirtualCart' => self::$cart->isVirtualCart(), 'productNumber' => self::$cart->nbProducts(), 'voucherAllowed' => Configuration::get('PS_VOUCHERS'), 'shippingCost' => self::$cart->getOrderTotal(true, Cart::ONLY_SHIPPING) + 10, // $10 is extra fee 'shippingCostTaxExc' => self::$cart->getOrderTotal(false, Cart::ONLY_SHIPPING) + 10, // $10 is extra fee Result should be something like this http://i.imgur.com/TKARRK7.jpg PS version : 1.4.4.1 Edited September 24, 2013 by ruslyrossi (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts