N
N
N1Kk12018-03-05 18:17:02
WordPress
N1Kk1, 2018-03-05 18:17:02

How to make price option negative in WooCommerce Product Add-Ons plugin?

In the plugin, you can select options for the product, but they can only increase the price of the product, how to make them able to reduce the price of the product.
I looked at the source code, there are some restrictions on option['price'] in different .php files, the value must be greater than 0, but removing this I did not get the proper result, I also corrected the total > 0 line in addons.js, also nothing happened.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question