S
S
sham632021-07-14 18:14:53
WordPress
sham63, 2021-07-14 18:14:53

How to respect WooCommerce product custom fields when adding to cart?

Hello everyone :)
The essence of the question: I use custom fields for simple WooCommerce products. Created them using standard engine methods. On the site itself, on the product page, I wrote a small order calculator that calculates the total amount of the selected (there are checkboxes) attributes and displays the result. The values ​​of these attributes are taken from those very arbitrary fields. How can I add the ability to pass these parameters to the order itself (basket)? Now only the base price is transferred to the cart.

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