Lars47 Posted January 9, 2014 Share Posted January 9, 2014 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 More sharing options...
tomerg3 Posted January 9, 2014 Share Posted January 9, 2014 Have you looked into the "Catalog Price Rules" While you cannot use weight, you can specify the quantity, and should be able to match that with the weight. You can have discount apply to a certain product, or category. Link to comment Share on other sites More sharing options...
Lars47 Posted January 9, 2014 Author Share Posted January 9, 2014 Thank you for your answer, but I can't do that because the weight is different on the goods. Some goods are 500 gr., some 1 kg and some 2 kg. Link to comment Share on other sites More sharing options...
tomerg3 Posted January 9, 2014 Share Posted January 9, 2014 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 More sharing options...
Lars47 Posted January 9, 2014 Author Share Posted January 9, 2014 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 More sharing options...
tomerg3 Posted January 9, 2014 Share Posted January 9, 2014 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 More sharing options...
Lars47 Posted January 9, 2014 Author Share Posted January 9, 2014 ok thank you Link to comment Share on other sites More sharing options...
Recommended Posts