radus Posted November 17, 2014 Share Posted November 17, 2014 (edited) Hi, I want to seo enrich my site, and for that I want to have Category and Subcategory everywhere a product is shown ( homepage, category page, subcategory page, product page, etc. Mark-up is in schema.org, with itemprop="category" , and is inside Product-list.TPL for Category and Subcategory Product.TPL Homepage.TPL <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="category" content="{$link->getCategoryLink($smarty.get.id_category, null, $lang.id_lang,null,null )|escape:'html':'UTF-8'}" /> </div> Example : http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.winerepublic.ro%2Fen%2Fwines-6 Problems: A ) Not working for Category , when Product is in a Subcategory [ only shows current category / subcategory ] - in Product-list.TPL B ) Not working for Homepage.TPL and Product.TPL For Product-list.TPL 1. In Category, it shows the Category URL 2. In SubCategory, it shows the SubCategory URL , not anymore Category URL For Product.TPL 1. It shows a truncated URL : http://www.winerepublic.ro/en/- [ http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.winerepublic.ro%2Fen%2Fred-wine%2F16[spam-filter]selene-cabernet-sauvignon-cramele-recas.html ] For Homepage.TPL 1. 1. It shows same truncated URL : http://www.winerepublic.ro/en/- [ http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.winerepublic.ro%2Fen%2F ] Where am I missing something ? SEO result is VEERY motivating: see chart Edited November 17, 2014 by radus (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now