Show WooCommerce notices on any page without redirecting to the specific product
-
Hi,
I am building a custom shop page where I query individual products and call “woocommerce_template_single_add_to_cart” for each. The products are perfectly rendered but the problem is that clicking the “Add to cart” on a given product always redirects to that product in order to show the WooCommerce notice – either “The product has been added to your cart” or “You can’t add this product to your cart” (because of quantity restrictions).What I want is to show these WooCommerce messages on the custom shop page without redirecting to the product page. Should I change something in the “woocommerce_template_single_add_to_cart” template? Could the messages be shown in a pop-up, for instance?
Many thanks
- The topic ‘Show WooCommerce notices on any page without redirecting to the specific product’ is closed to new replies.