Jump to content

getCategoryLink always gives 2-home


MatiPasio

Recommended Posts

Hello,

I have a problem with $category->id_category in product.tpl. This always gives me ID 2.

<a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}#/color-{$colors.$id_attribute.name|lower|replace:' ':'_'|escape:'html':'UTF-8'}" target="_blank" style="width: 165px;display: block;margin-top: 8px;;">SEE MORE IN THIS COLOR!</a>

My version is 1.6.1.4.

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

Are you using custom theme for your store?

It may be issue of the custom theme because some link is getting created based on a particular category.

 

 

To identify exact issue, we need more information about your site like theme code so that we can find out what actually is the problem and provide solution.

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