V
V
Vadim Sverdlik2018-02-08 17:30:37
WordPress
Vadim Sverdlik, 2018-02-08 17:30:37

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

3 answer(s)
A
Alex-1917, 2018-02-08
@alex-1917

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!

S
Socrates, 2018-02-08
@Karmov69

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

M
Mr Crabbz, 2018-02-08
@Punkie

https://codecanyon.net/item/woocommerce-dynamic-pr... - check out the demo here. I put the client on the last project - a very wide range of different discount options. Over a hundred different options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question