Jump to content

Shiping cost depend on items quantity in cart


bja

Recommended Posts

I need Prestashop to calculate shipping cost depend on items quantity in cart. If there is more than one item in cart, i want the shipping cost to be 50% of sum of all shipping costs.
All of my products have Additional shipping cost.

I modyfied the cart module, but when i proceed to order page, the shipping cost is still full amount.

My code in blockcart:

if($nbTotalProducts>1) {
$shipping_cost_float = $shipping_cost_float/2;
$shipping_cost = $shipping_cost/2;
}

How can i store new shipping cost for all modules/controllers?

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