woocommerce_cart_updated

  • 0

This hook, works when a cart is updated. If you want to recalculate anything in each cart updation(quantity change, product adding, deleting) use this filter

add_action( ‘woocommerce_thankyou’, ‘update_cart’ );

function ‘update_cart ($order_id){

}

This hook, works when a cart is updated. If you want to recalculate anything in each cart updation(quantity change, product adding, deleting) use this filter add_action( ‘woocommerce_thankyou’, ‘update_cart’ ); function ‘update_cart ($order_id){ }

This hook, works when a cart is updated. If you want to recalculate anything in each cart updation(quantity change, product adding, deleting) use this filter add_action( ‘woocommerce_thankyou’, ‘update_cart’ ); function ‘update_cart ($order_id){ }