Multivendor add to cart – change error alert behaviour
-
Hello,
I disabled the possibility to add multiple vendors’ products to cart.
What i wanted to do is to simply show an alert with some message like “Cannot add product from different vendors”, without page redirect on the product page.
I found that the redirect part after an error is in WooCommerce /includes/class-wc-ajax.php, which call woocommerce_cart_redirect_after_error. I disabled it by adding filter in functions.php (return false).
Now: where can i find – in wcfm – the part that calls this function in order to overwrite it to show only an alert on actual page?
Thank you.
- The topic ‘Multivendor add to cart – change error alert behaviour’ is closed to new replies.