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

  1. tokkilee
    Posted 2 years 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?


  2. Mike Jolley
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

    Perfect! You are awesome as always, Mike :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic