WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Add to cart not showing for variable product (22 posts)

  1. abductedrecords
    Member
    Posted 1 year ago #

    Just downloaded Woocommerce fresh today to install on my personal site, and for some reason the add to cart doesnt show up when i have a variable product. It shows up fine for simple product though. Yes all the fields are filled out as well. Please help, this is frustrating :/

    http://www.abductedrecords.com/shop/predator-mens-shirt

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

  2. pricklepantz
    Member
    Posted 1 year ago #

    I'm pretty sure something wrong with the javascript inside plugins/woocommerce/assets/js

    may be replacing it will fix.

    i had this when trying WC 2.0 beta

  3. abductedrecords
    Member
    Posted 1 year ago #

    no workaround released yet?

  4. chaddyd
    Member
    Posted 1 year ago #

    I too am having this problem, would love some help.

  5. samueljeden
    Member
    Posted 1 year ago #

    This could be due to having your variations setup incorrectly in the admin.

    or this could be a theme issue, try reverting to a standard theme like twenty eleven or twenty twelve and see if the problem still persists.

    Thanks

  6. chaddyd
    Member
    Posted 1 year ago #

    What should I check for in the admin? It works when I switched to Twenty Eleven

    thanks for the reply

  7. abductedrecords
    Member
    Posted 1 year ago #

    would this be a conflicting code? im not understanding why the single item works, but the variable one doesnt. what code is different for the cart?

  8. relativist
    Member
    Posted 1 year ago #

    i posted about this issue and have seen several people post about this apart from my own thread. i was having the same issue if and only if i used the js minify option in with the w3 total cache plugin.

    problem is, my site loads soooooo slowly (sometimes 30 seconds) i really have to figure out how to optimize it without the plugin anyway.

  9. chaddyd
    Member
    Posted 1 year ago #

    seems like this is a known-bug... where can we find an answer? how can we get this thread to more experts?

  10. samueljeden
    Member
    Posted 1 year ago #

    This is a theme issue, if it works when switched to the Twenty Eleven theme, your theme is overriding the JS for the add-to-cart-variable file.

    This could be that the jquery version is old, it could be that some other piece of code is conflicting.

  11. chaddyd
    Member
    Posted 1 year ago #

    Thanks for the reply, guess I will contact the theme designer. For reference, it's this theme:

    http://wp.io/wordpress-theme/theme1562/

    Oddly, Template_Help.com doesn't work (the theme creator)

  12. abductedrecords
    Member
    Posted 1 year ago #

    In my case that isnt the issue. I disabled all other java files that were running other then the ones running from the cart file. Still had a conflict. I wish there was some documentation to tell why the simple and variable product are pulling the cart in separate ways. It should just be passing a variable to the same form.

  13. jordi.dm.perez@gmail.com
    Member
    Posted 1 year ago #

    I've been having the same issue with various woothemes plugins I've purchased. I'm running the Mercor theme, using Gravity Forms Add-ons and Swatches and Color Picker and neither of them work with my theme.

    I'm being bounced back and forth between woothemes and the Mercor theme developers. It's a nightmare.

    I hope someone can shed some light on this.

    Here's an example: http://www.verezsuits.com/shop/suit/charcoal-suit/

  14. Martin
    Member
    Posted 1 year ago #

    Here’s the fix for my theme … until it gets fixed in the plugin itself …

    Add this to your functions script:

    function fix_woo_var_cart()
    {
      wp_enqueue_script('add-to-cart-variation', '/wp-content/plugins/woocommerce/assets/js/frontend/add-to-cart-variation.js',array('jquery'),'1.0',true);
    }
    add_action('wp_enqueue_scripts','fix_woo_var_cart');

    That’s my crude code taken from another forum thread but it works fine.

  15. WordPress.Net.In
    Member
    Posted 1 year ago #

    I also try this but not working for me. Any other solution?

  16. Mikecpaine777
    Member
    Posted 1 year ago #

    Hi there, fairly new to this. Where exactly in the "Functions.php" file of the theme do you paste the code. I am not sure if you can insert it anywhere or if there ios a specific place. Kind regards

  17. heyshawn
    Member
    Posted 5 months ago #

    @Martin - Thank you, you're awesome! Your code worked perfectly and saved me a lot of stress. Now I'm off to launch this site. This variable product missing add to cart button was all that was holding me up.

  18. jamiewalden
    Member
    Posted 5 months ago #

    Martin's hack worked for me too. Thanks man.

  19. krystinealaina
    Member
    Posted 5 months ago #

    Been searching for DAYS on how to fix that add to cart button and Martin's hack is perfect. Woo hoo!

  20. supawiz6991
    Member
    Posted 5 months ago #

    This didn't work for me. Further the "add to cart button not showing up" issue only occurs in IE (Im currently using IE9 due to fatal issues in IE10 and IE11 that have rendered them not suitable for web browsing)

  21. Joshua Ray
    Member
    Posted 4 months ago #

    Having same problem even in the Twenty Eleven theme

  22. Joshua Ray
    Member
    Posted 4 months ago #

    Rolled back to 2.0.12 and now I don't have the problem. I will have to wait tell and update

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags