Searchin for woocommerce api help
-
I am using a woocommerce to create a catalogue of products.
I wanna change the price due to my custom fields value.
On Front-end i will use JS + JQ and overwrite the container.
But to add this price and overwrite the default price i need your help.
I found a hook called ‘woocommerce_before_calculate_totals’. There i can overwrite the price. But i will need the fields values.Question #1: Can i acces the $_POST in this hook?
If not:
Question #2: Do woocommerce have a hook for creating the $product global with the products to add into cart? Where i can access a $_POST or its array in another variable?Thnx in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Searchin for woocommerce api help’ is closed to new replies.