WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Disable Add To Cart button on for specific category after add a product to cart. (2 posts)

  1. paanmfr
    Member
    Posted 1 year ago #

    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/

  2. justinledelson
    Member
    Posted 1 month ago #

    Did you ever find a solution to this?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.