anis_r Posted November 11, 2019 Share Posted November 11, 2019 (edited) Hello, I currently need to deduct x% of the profit of all products when cart quantity is greater than 2. I tried using Product Catalog rules for that, but I could only set the discount as either a fixed amount or a percentage of the product's *total amount* (I could figure out the cart quantity part though). How can I set a discount based on profit instead (i.e. retail price minus cost)? Something like: New price = Old price - 10% of profit How can I achieve this? I am a developer so I don't mind some coding (not a Prestashop expert though !). P.S.: If this can actually be done using product catalog rules, I would definitely prefer to have one general rule for all products - not one rule for each product, as I have lots of products in my shop (otherwise I would have just hard-coded a fixed discount amount for each product). Thanks in advance! Edited November 11, 2019 by anis_r (see edit history) Link to comment Share on other sites More sharing options...
NoslenZuir Posted November 27, 2020 Share Posted November 27, 2020 Hi there. I have a similar problem, When I create a cart rule I need to apply discount directly to products not total so the voucher print that way. How can achieve that? 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