How to take price with custom fields?
Hello dear friends!
Please tell me how to make WooCommerce to charge a price of a product with custom fields?
When you publish the product there are 3 fields with the price, the customer can choose the price Type in the item card, but how to get WooCommerce to consider this price when ordering?
Edit: With the extra fields, custom posts types...
Please tell me.
Thanks in advance!
2 answers
Plug-in TM Extra Product Options
It was the experience of substitution of different prices from special tables in the database. The essence is the same. There are hooks which allow the filters to frame rates and take them from anywhere. It is necessary to read source codes and look them up.
The easiest option is to do variations with different prices.
Find more questions by tags WooCommerceWordPress