Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Almichael Zukof
Almichael Zukof
61 Points

woocommerce add to cart for variable product is not working!

hi from weeks i am stucked to it! i am trying to develop a woocommerce theme with html5 blank wordpress template. added woocomerce.php and woocommerce theme support in my function.php. evrything just works fine. now the problem is when i try to add a variable product to the cart it does not adds the product to the cart instead it reloads the page. i tried switching to the wordpress default template i.e; twenty sixteen the it worked fine! then i tried integrating my header and footer with this twenty sixteen theme then again its not working! whats the issue ? can somebody help me. i am stucked to it for weeks pls pls pls help!

1 Answer

Almichael Zukof
Almichael Zukof
61 Points

ok i solved it, in case if anyone needs it!

i was missing <?php wp_head(); ?> in my theme header.php you have to add this just above the </head>.

thanks! :)