Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to cart button not working on variable products #1514

Closed
sponsorist opened this issue Sep 16, 2012 · 6 comments
Closed

Add to cart button not working on variable products #1514

sponsorist opened this issue Sep 16, 2012 · 6 comments

Comments

@sponsorist
Copy link

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
Copy link

ruzi25 commented Sep 18, 2012

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

@sponsorist
Copy link
Author

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

@mikejolley
Copy link
Member

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

@sponsorist
Copy link
Author

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
Copy link

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
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants