Hi,
i would like to know how i can add the category title in the product details page ?
Whereabouts?
Isn’t the category title already in the breadcrumbs?
[quote name=‘creativeuser’]Hi,
i would like to know how i can add the category title in the product details page ?[/quote]
It should be:
{$category_data.category}
i would like to put it just after the name of product, but when i add
```php
{$category_data.category}
```
the title of category don’t display
File
```php
skins/basic/customer/blocks/product_templates/default_template.tpl
```
Maybe the array for category_data don’t exist ?
i try to put this in default_template.tpl but it doesn’t display
skins/basic/customer/blocks/product_templates/default_template.tpl
has anyone found a solution for this as i also need to list the category title within the product page i did try $category_data.category but no joys heh
this is an old topic but I foud the solution to anyone still being interested.
all you have to do to get the category title is go to skins\your_skin\customer\blocks\product_templates\default_template.tpl (or any other that you have selected to use)
and add where ever you like the code below
```php
{math assign=“get_category” equation=“x-2” x=$breadcrumbs|@count}
{$breadcrumbs.$get_category.title}
```
Hi ngoagr
Your method works great. Thanks!!
Any idea how to display the category image instead of the title?
Cheers!
Have anyone managed to do this? I mean managed to show a category image on product details page? Or can a add-on be found to do something like this?? I have googled couple of hours now and found nothing…
[quote name='sami-petteri' timestamp='1359962977' post='154413']
Have anyone managed to do this? I mean managed to show a category image on product details page? Or can a add-on be found to do something like this?? I have googled couple of hours now and found nothing…
[/quote]
What place on the product details page do you want to show the category image and name?