I recently added rich snippets to the product detail page for simple and configurable.
But now I'm asking myself if it was right to add the meta datas at the end of the templates.
How do you solved this in your projects?
I first tried to set the meta tags outside my template or with other words at the top of my layout.
But then I had to struggle with all product details.
- How do I know if the product is a simple or configurable?
- How do I know if the product has related products?
To solve this I need a new template and a new block to make all the queries I have to do when I enter the product detail page.
But at that point I guess it is much easier to create a module.