Home › Forums › Jevelin Theme › Update cart, trigger check cart
Home › Forums › Jevelin Theme › Update cart, trigger check cart
hello, i have a plugin to check the min quantity in the cart and if fail it will trigger a notice on the cart, upfortunatelly that only update if i refresh the page, and not if the update cart button is pressed, i’ve also tried removing the plugin and create the filter by my self adding a action in the functions.php file of the theme child
add_action( ‘woocommerce_check_cart_items’, ‘checkQta’ );
add_action( ‘woocommerce_update_cart_action_cart_updated’, ‘checkQta’ );
add_action( ‘woocommerce_after_cart_item_quantity_update’, ‘checkQta’ );
add_filter( ‘woocommerce_update_cart_action_cart_updated’, ‘checkQta’ );
add_filter( ‘woocommerce_update_cart_validation’, ‘checkQta’ );
then in the function i do a
wc_add_notice( sprintf( ‘errore %s’,$number),’error’ );
and the same, during the update cart button it will not call the function
any suggestion where to trigger that in the update cart function
Hi @Darkmagister,
I hope you are well today and thank you for your question.
This is a WooCommerce plugin related question so could you please contact the WooCommerce plugin support regarding this?
Best regards,
Shufflehound team