| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Product page show the category image | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
Been searching this forum and found a how to show the category name on the product page, but I can't find what to change to get the category image showing. This is the code from another post on here for showing the category title in a product: {if $location} {foreach from=$location item=l name=location} {if $smarty.foreach.location.index == $smarty.foreach.location.total - 2} <div class="backtocat"> <div class="label"> <a href="{$l.1|amp}"><div class="icon"></div>{$lng.lbl_back_to} {$l.0}</a> </div> </div> {/if} {/foreach} {/if} Can anyone offer advice on what needs changing to show the category image on product page? I have also tried attempts using the code in subcategories_t.tpl and failed... Version 4.6
__________________
Gold 4.4.4 |
|||||||
#2
|
|||||||
|
|||||||
![]() A quick way...
Code:
__________________
xcartmods.co.uk |
|||||||
#3
|
|||||||
|
|||||||
![]() Thanks for reply Phil, works well.
But if I wanted to use a different way so I can manually select which images show, in my home.tpl file I have the below, how could I get to also show on products in that category? ... {elseif $main eq "catalog" and $cat eq "273"} <img... Cheers
__________________
Gold 4.4.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|