Code Element Wr

Remove ‘Add to Cart’ Button on Woocommerce Product Taxonomy & Archive

Use this code snippet to remove the Add to Cart button on Woocommerce Taxonomy and Archive pages.


my_taxonomy: with the name of your custom product taxonomy

 * Remove 'Add to Cart' button on Taxonomy & Archive pages
add_action('woocommerce_after_shop_loop_item', function () {
    if (is_tax('my_taxonomy') || is_product_category() || is_shop()) { 
        remove_action('woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart');
}, 1);