Jump to content

Recommended Posts

Hi.


 


Is it possible to make a discount based on the total weight of some of the goods in the cart.


 


example:


I sell beef in packages of 2 kg.


Pork in packages of 1 kg.


And I also sell computers (just an example  :).


 


If a customer buy both meat and the computer, then the discount shall only apply on the meat and not the computer. The discount shall apply on the meat when the cart contains a total of 10 kg meat = 5 % discount, 20 kg = 10 % discount and 30 kg = 15 % discount.


 


Thank you.


Lars.


Link to comment
Share on other sites

You may need to do a specific discount for each of those, rather than a global discount.

 

The other option would require core modifications.

 

You can try searching the Prestashop addons store to see if there a a module that may do something like that

Link to comment
Share on other sites

thank you.

I will try to see if I can make it work with specific discounts.

I haven't any module that can do that yet, but I will keep searching :)

 

I have nothing against trying to make some core modifications, the problem is that I don't know what to modify.

Link to comment
Share on other sites

I would try the approach of replacing the quantity check with weight.

You would have to find the code that checks and applies the discount and do it there (I don't have it off the top of my head).

 

I would try first without any changes, and do that as a last resort.

Link to comment
Share on other sites

×
×
  • Create New...