Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Categories image on product page Rate Topic   * * * * * 1 votes

 
  • bluelevel
  • Newbie
  • Members
  • Join Date: 22-Apr 13
  • 4 posts

Posted 22 April 2013 - 03:58 PM #1

Hi i am looking for a way to get the category image to display on the product page. using the following code i am able to get the category to show up, but not the image...

{math assign="get_category" equation="x-2" x=$breadcrumbs|@count}
<h2 class="categoryTitle-productPage">{$breadcrumbs.$get_category.title}</h2>

I know this looks at the breadcrumbs so not to do with the category images, but any ideas would be great.

With regards to there being more than 1 category, i want the image to display the selected breadcrumb category.

Thanks
Andy

 
  • bluelevel
  • Newbie
  • Members
  • Join Date: 22-Apr 13
  • 4 posts

Posted 23 April 2013 - 08:35 AM #2

I have found this bit of code and its in the site now and it comes up with a 'no image available' box.... any idea what i need to tweak so it finds the right category image?

heres the code...

<div class="categories-image">
{include file="common_templates/image.tpl" show_detailed_link=true images=$category_data.main_pair object_type="category" no_ids=true class="cm-thumbnails"}
</div>