Jump to content

How to display default category name of a product in 1.6


webalive

Recommended Posts

Hi all,
 
I'm trying to display the default category name on product page in 1.6 version.
But it seems I can only retrieve the current category name

 

<a href="{$link->getCategoryLink($product->id_category_default,-$category->name)}">{$category->name}</a>

category_default-> name doesn't work..

 

if someone can help... My week-end would be better..

 

thanks

Link to comment
Share on other sites

  • 2 months later...

Thank you for your answer!

 

I need the default category to be displayed (This is what i've got) so I've put this code:

<a href="{$link->getCategoryLink($product->id_category_default)}">{$product->category}</a>

And here is the result (BROOKE-GREGSON) i do not want the - to be displayed

 

http://www.hod-boutique.com/brooke-gregson/1044-bracelet-cuff-4-tanzanites.html

 

Please help.
Thank you very much

Edited by dasteralo (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...