Answer the question
In order to leave comments, you need to log in
How to make every second item in the shopping cart list 50% off?
Site on WP. Woocommerce is installed. I need to do the following thing: if there is a list of products in the cart, then the second product must necessarily go with a 50% discount, except for only one specific category. That is, no matter how many products are in the list, the second one must be discounted. How to do this? Is it possible with the help of a plugin or is it self-written?
Answer the question
In order to leave comments, you need to log in
why are you doing this crap? so that users start shuffling their baskets, fitting them to the second most expensive product? it won’t be a business, but
is there a plug-in?))) Well, if you haven’t found it, then no))
self-writing can definitely give a solution, I wrote something similar about 2 years ago, but there was no link to the number, the second product from the same category received skidos, even though he was the second, even though he was the first, even though he was the thirtieth, the point is that it was a product with a lower price, and this is business, and any sane entrepreneur will throw your idea into the trash!
if the remainder of (product id / 2) == 0 then you add a discount.
in short, the idea is something in this regard, I think you can use
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question