Set cart item price from a hidden input field custom price in Woocommerce 3
Update 2021 – Handling custom price item in mini cart First for testing purpose we add a price in the hidden input field as you don’t give the code that calculate the price: // Add a hidden input field (With a value of 20 for testing purpose) add_action( ‘woocommerce_before_add_to_cart_button’, ‘custom_hidden_product_field’, 11 ); function custom_hidden_product_field() { … Read more