Jump to content

[1.6.1.7] Default category name on product.tpl


stanleyek18

Recommended Posts

Hello!

 

I guess older solutions for that doesn't work for newest presta, so I came here for help.

 

Currently I am displaying Default Category with link do it with this code (on product.tpl)

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

But this shows me "raw" category name and I need it to be full title.

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

Shows full category name but not default category.

 

Thanks for your help!

  • Like 1
Link to comment
Share on other sites

Solutions of vekia (mypresta) works in 1.6, the same as in 1.5. It was here wrote, just use search engine. But, the same, it return default category, and name will be the same as you see in breadcrumb.

In otherwise, when you want to rewrite meta title of category, which you written by yourself in BO, to product meta title, probably it won't be possible.

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