Answer the question
In order to leave comments, you need to log in
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
Add a promotional code, and by clicking on the button, write the promotional code in cookies and there the price will already be lower
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 questionAsk a Question
731 491 924 answers to any question