Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add to cart button not working on variable products #1514

Closed
sponsorist opened this Issue · 6 comments

5 participants

@sponsorist

I have variations of a product setup correctly (sizes for a shirt) and the Add to Cart button does not show up at all when one of the Size options is chosen. Regardless of whether ajax is on/off in WooCommerce settings.

I saw that removing the display:none style on

in variable.php will make the add to cart button display, but it still doesnt work.

Can someone take a look? Cant seem to find/figure out a solution for this.

Product is here: http://www.jimmahfood.com/shop/food-onesupremebeing-one/

Thanks!

@ruzi25

Do you have wp_footer(); in your themes footer.php page?

@sponsorist

When i put it in, the entire WooCommerce store becomes blank

@mikejolley
Owner

You need wp_footer(). If that breaks things, look into your other plugins + theme.

@mikejolley mikejolley closed this
@sponsorist

Thanks Mike, I played around with it and still had the same issues where wp_footer was breaking the Woo frontend. turns out this gizmo fixed it: http://www.rockettheme.com/forum/index.php?f=628&t=173818&p=855678&hilit=woocommerce&rb_v=viewtopic#p855678

@paulmasek

I'm also getting the add to cart button not working on variable products issue. My theme has wp_footer() in the correct place, and i've tried taking my custom templates and php code out of the build to make sure they're not interfering.

When submit is pressed, after product options are selected. "Please choose product options…" is appearing both with js on and off.

Im running Version 1.7.0 beta and everything is fine on the system status. Another thing to note, is Single products are adding to the basket fine.

Not sure if https://github./woothemes/woocommerce/issues/1495 is related. Any ideas on debugging would be greatly appreciated.

Thanks

@iadventure

sponsorist, that link does not work. what fixed it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.