• Resolved jdlev

    (@jdlev)


    This issue is driving me bonkers. All my other products work just fine, but when I try to add a variable product to my cart, I get the error “Please choose product option…”, and nothing happens! I’ve tried updating the jQuery nonsense as that is what has plagued others, but it didn’t work. I’ve tried looking for JS errors while my script is running through chrome dev tools, and I get ZERO errors. I’m totally lost and trying my hardest to get this charity’s website up, but I’m stuck.

    To view the page that has the issue:
    Donation Page

    https://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter jdlev

    (@jdlev)

    It’s not a theme based error…at least from what I can tell.

    I tested storefront on the site, and even it was throwing the same error. For whatever reason, the system isn’t filling the variation id.

    Where can I find the function responsible for assigning variation id’s, or where in the woocommerce database can I check to see if variation id’s are loading properly?

    I think it is an issue with the variation ID properly assigning the values. I found the meta key _variation_id (which I assume is correct), and there are loads of id’s in there with 0 for the meta_values…

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    I saw your posts in the sticky and have asked a mod to clean those up. Post here.

    Quick background; WP 4.5 bumped the version of jquery in core and several themes and plugins were not ready. Selectors are more strict so if themes/plugins forget to include things like quotes (most common) the JS on the entire page is broken. This includes variations.

    In your case now I can actually find the page, your footer is not outputting all scripts due to this:

    <b>Warning</b>:  mysql_query() [<a href='http://www.mysql.com/doc'>http://www.mysql.com/doc</a>]: Table 'cb.cb_donations' doesn't exist in <b>C:\xampp\htdocs\CarolinaBrotherhood\participants\wp-content\plugins\custom-plugins\hello.php</b> on line <b>81</b><br />
    </span>Invalid query: Table 'cb.cb_donations' doesn't exist

    So I’m going to guess this whole fiasco is down to your ‘custom-plugins’ and not WC at all 🙂

    View page source right at the bottom to see for your self.

    Thread Starter jdlev

    (@jdlev)

    Thanks Mike. I think this bug took about 5 years off my life lol. I appreciate it 🙂

    Thread Starter jdlev

    (@jdlev)

    Hey Mike – can I ask you how you were able to get my site to display that error? I tried a bunch of stuff to get the site to show errors, but never succeeded. Any Tips?

    Mr. W

    (@gabriel-winnberg)

    Having the same problem. Did you manage to solve it?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Woocommerce Variable Product Error – "Please choose product option.."’ is closed to new replies.