Hot answers tagged woocommerce
While this question is probably technically off topic since it relates to woo, there's definitely some stuff that could be answered that will help other users in the future, plus, I really have been there with the multi-day frustration stuff and would have killed for a life line. There's a few things at play here, what you're looking at in the code you ...
There is Woocommerce conditional tag for single product page Try if(is_product()) instead of if ( is_page_template( 'single-product.php' ))
WooCommerce has it's own loop (eg this is their "Products Loop" that it loves to use, your theme may not support it and/or conflict with it. One way to rule this out is to use their themes (I know, shock, horror) fortunately they have some free themes you can use, if only for testing purposes.
Only top voted, non community-wiki answers of a minimum length are eligible