WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Product Variations Add to cart JS issue (3 posts)

  1. tokkilee
    Member
    Posted 1 year ago #

    I've got a bunch of JS errors dealing with the product variations script on http://astashaddict.co.uk/shop/fifty-shades-dyed-to-order/

    As you can see, if you choose a variation, nothing happens (the add to cart doesn't show). If I force show the add to cart and try to add a product, I get an error saying no variation was chosen, so it's obviously not registering the dropdown selection.

    I tried disabling all plugins and commenting out all JS and still nothing. Any ideas?

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

  2. mikejolley
    Member
    Plugin Author

    Posted 1 year ago #

    Try updating your templates/single-product/add-to-cart/variable.php template. I notice this old code in there: http://cl.ly/image/27063a0K2j03 2.0 adds this to the form as a data attribute instead.

  3. tokkilee
    Member
    Posted 1 year ago #

    Perfect! You are awesome as always, Mike :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic