I've been building a template for WooCommerce and all is well, but I'm getting at the point for making the product template and getting confused. I read all about using the WooCommerce template structure and copying that into my own theme folder. BUT I just created single-product.php without copying that woo commerce folder in my theme folder and I can just style, and get my data with queries etc. Is that the correct way? Or should I really copy that folder into my theme and use that way?
Asked
Active
Viewed 884 times
0
-
1You should put the template in your themes woocommerce folder. Without it woccommerce won't know that your using a custom template. This might work fine for now but you might have bugs in future. – Jay Bhatt Apr 27 '14 at 10:27
1 Answers
3
Woocommerce templates are loaded in the following hierarchy:
- theme/template_path/template_name
- theme/template_name
- default/template_name
,so if you put the copied template into theme folder Woocommerce will find that template, but it is more practical to separate the theme templates from a plugin templates to have the overall file structure cleaner.

Danijel
- 12,408
- 5
- 38
- 54