A
A
alex steel2017-07-06 22:38:14
WordPress
alex steel, 2017-07-06 22:38:14

How to discount second Woocommerce item?

The task is as follows, if a person buys 1 product, then the price does not change, but if he buys 2 products, then the next one receives a discount, for example, 25%. How to implement or tell me a plugin for implementation

Answer the question

In order to leave comments, you need to log in

3 answer(s)
W
WordPress WooCommerce, 2017-07-07
@maxxannik

Haven't seen any plugins yet. However, you can write your own.
The main thing here is to understand the mechanics of the catalog, basket and order:
1. the catalog contains products
2. the basket contains data about the products
3. order elements (order_item) get into the order
This means that almost any data can be changed at all these stages.
For example, you can check if there is 1 product at the time of adding to the cart. And if there is then the 2nd and then add at a discount.
If this is understood, then an average programmer will be able to figure it out further.

S
Stanislav, 2017-07-06
@stanislav-belichenko

Are you interested in how to write it yourself, or a discount management plugin? I would advise you to use the second option, since in the case of self-writing this is not a very trivial task, since even in the case of such a simple discount, in a good way, you need to make it manageable through the site admin panel, and this grows to a serious task.
Plugins that solve your problem:
WooCommerce Dynamic Pricing - $129.
WooCommerce Bulk Discount - free.
Pricing Deals for WooCommerce - free with Pro version.

D
Denis Demin, 2019-01-30
@neytrino-kain

bulk discount
plugin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question