Hi. How can we help?

Add to cart" button displayed twice on the shop page

When using Catalog Mode exclusions, it might happen that the “Add to cart” button is displayed twice on shop pages (it may also appear suddenly if not expected). This happens due to the theme using a different hook for displaying this button.

The issue can be solved by adding the following line to the functions.php file of your theme:

add_filter('ywctm_modify_woocommerce_after_shop_loop_item', '__return_false');
Was this article helpful?
3 out of 5 found this helpful

Back to Help Center >