WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. robertodimarco
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. Justin Sainton
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year ago #

    Fantastic!!! Thank you!!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic