I
I
Irina Kirillova2017-05-25 13:39:51
CMS
Irina Kirillova, 2017-05-25 13:39:51

How to implement a discount for a product in Woocommerce?

Hello. In an online store on Woocommerce, you need to implement the following: so that next to the price or the "Add to Cart" button there is another button "Buy with a 15% discount". And, accordingly, when you click on the button, the product was sent to the basket with a new price. Maybe someone knows some plugin or solution. Help me please! Thanks in advance :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Pushkarev, 2017-05-25
@AXP-dev

Add a promotional code, and by clicking on the button, write the promotional code in cookies and there the price will already be lower

W
WordPress WooCommerce, 2017-05-25
@maxxannik

You can cut some promo codes. And add the logic of their auto-acceptance. I'm not sure that this is an adequate and optimal solution. But there is a chance it will work. Need to try.
As a last resort, you can write your own discount logic. For example, you can add a parameter to a product like ?add-cart-sale-15. The button that substitutes this parameter.
And if you call such an address, then add this product to the cart with a price of minus 15%.
Technically, this is real. The Woo architecture allows you to do this.
However, it takes time to study the original logic and methods for changing it. This requires a fairly experienced programmer. A beginner will not cope with such a task.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question