Jump to content

Link to Category need help


Recommended Posts

Hi All,

This code will show the Category of the product showing on the product page

{if $category}
{l s='Category: '}
   {$category->name}
{elseif $product->id_category_default != 1}
   {php}
       global $product, $cookie;
       $this->assign('default_category', new Category($product->id_category_default, $cookie->id_lang));
   {/php}
  {$default_category->name}
{else}
   {$shop_name}
{/if} 



Does anybody know how to make this a link to the category ?

All the best,
Cerberus22

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