How to add user offer price?
-
There is a task for goods to make it possible to offer the user their own price.
Tell me how to pick up and where is the best place to store this value for the current user?
Here in the theme
file /woocommerce/single-product/add-to-cart/simple.php
<label class="propose_price"> <span class="propose_price__desc"><?php _e("You can propose a price") ?></span> <input class="propose_price__val" name="propose-price" type="number"> </label>
If the user has entered a value in input, then it must be saved… to be passed on to the Order. I understand that in theory it should be something like
$product[propose-price]->
but there is no such cell in the product database.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add user offer price?’ is closed to new replies.