WP eCommerce
[resolved] Disable "add to cart" when variations is out of stock. (3 posts)

  1. robertodimarco
    Posted 2 years ago #

    I have last version installed (3.8.10). I want to disable the button when a variation ( example, t-shirt RED) run out of stock. Any suggestions?


  2. Justin Sainton
    Plugin Author

    Posted 2 years ago #

    Hi robert,

    In the upcoming release of WPeC 3.8.11, we have custom JS events you can hook into. We'll have one for the variations select fields to ensure that you can hook in when fields are selected and run any javascript you like when that occurs.

    See https://github.com/wp-e-commerce/WP-e-Commerce/commit/d52af36c33a84f730929b904c1baf797b652c0b4

  3. robertodimarco
    Posted 2 years ago #

    Fantastic!!! Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic