Support » Plugin: WooCommerce » Disable other product / Hide "Add To Cart" after insert 1 product in cart

  • Hi there,

    Need help on setting filter / action to remove or disable “add to cart” after a selected product is added to the cart.

    Theres a series of product.. Product A, Product B, Product C, and other products..

    If either one of these product was added to the cart, the whole store “add to cart” button will be remove or hidden or disable.

    Thank you.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author James Koster

    (@jameskoster)

    Hey,

    You can check what is in the cart with $woocommerce->cart->cart_contents. Then remove the add to cart using remove_action() (see woocommerce-hooks.php).

    Thx

    Thanks Jameskoster

    Functions added and worked.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable other product / Hide "Add To Cart" after insert 1 product in cart’ is closed to new replies.