Yoriel79 Posted May 4, 2011 Share Posted May 4, 2011 Hello.I have tried to solve my problem editing cart.php around line 1104 under PS1.4 // Adding handling charges if (self::$_nbProducts <= 3) 'PS_SHIPPING_HANDLING' == 0; if (isset($configuration['PS_SHIPPING_HANDLING']) AND $carrier->shipping_handling) $shipping_cost += (float)($configuration['PS_SHIPPING_HANDLING']); $shipping_cost = Tools::convertPrice($shipping_cost, Currency::getCurrencyInstance((int)($this->id_currency))); But it does not work.Could anybody help me, please? Link to comment Share on other sites More sharing options...
Ehinarr Posted May 4, 2011 Share Posted May 4, 2011 I'm not shure, but if you try to use the "return" php function, in order to stop the processing of the entire script? if (self::$_nbProducts <= 3) return 0; Link to comment Share on other sites More sharing options...
Yoriel79 Posted May 4, 2011 Author Share Posted May 4, 2011 Thanks Ehinarr.I have tested your solution, but it does not work. However it help me to try another similar solution that maybe works.I've changed if (isset($configuration['PS_SHIPPING_HANDLING']) AND $carrier->shipping_handling) $shipping_cost += (float)($configuration['PS_SHIPPING_HANDLING']); for if (isset($configuration['PS_SHIPPING_HANDLING']) AND $carrier->shipping_handling AND (self::$_nbProducts < 3)) $shipping_cost += (float)($configuration['PS_SHIPPING_HANDLING']); Its works! but I need to to refresh the website every time I add a product to cart.I feel close of the solution.Thanks. Link to comment Share on other sites More sharing options...
Yoriel79 Posted May 6, 2011 Author Share Posted May 6, 2011 Can anybody help me? I don't have resolved this problem ye 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