WordPress.org

Support

Support » Plugins and Hacks » Disable Add To Cart button on for specific category after add a product to cart.

Disable Add To Cart button on for specific category after add a product to cart.

  • Hi

    I’m using the following code to remove Add To Cart Button

    remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 );
    			remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );

    I understand that using add_action for the above action will display the button again, but how to remove only to a specific category?

    Thanks

    http://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Disable Add To Cart button on for specific category after add a product to cart.’ is closed to new replies.