Jump to content

Free Shipping Handling charges from 3 units.


Yoriel79

Recommended Posts

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

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

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...