I am rendering WooCommerce Cart items in a custom html table wrapper by a form that points to a custom PHP file.
<form class="woocommerce-cart-form" action="/update-cart.php" method="POST"> ... <input type="submit" name="update_cart" value="Update cart"> </form>
When I click on update cart, I get redirected via POST to
update-cart.php where I do some business related actions with the PHP
After doing those actions, I want to call to the WooCommerce original update action, but I am stucked.
This is what I have tried:
// Non of this has worked for me do_action('woocommerce_update_cart_action_cart_updated'); // 1 WC()->cart->persistent_cart_update(); // 2 do_action('update_cart_action'); // 3
How should I call WooCommerce's update action?