Jump to content

Category and Subcategory URL


radus

Recommended Posts

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>
 
 
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 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

post-283579-0-66219500-1416213760_thumb.jpg

Edited by radus (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...