| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
Dynamic image to display based on cat id? | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
Is there a way to display a graphic image at the top of the products results page based on category id? or this a hack or module somewhere for this already?
I tried the following but it did not work. <?php $catheadimage = '<img src="/skin/images/catheadimage' . $cat . '.jpg" width="667" height="270" alt="">'; echo "$catheadimage"; ?>
__________________
Xcart 4.0.19 |
|||||||
|
#2
|
|||||||
|
|||||||
|
Don't use php, just put it in the template. Not sure about category id, but I use this for calling an image with the current category name:
<img src="{ImagesDir}/{$current_category.category}.jpg" alt="{$current_category.category}">
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#3
|
|||||||
|
|||||||
|
Thanks that's what i was looking for. Where can I go to find a list of all system variables? Is there a reference?
__________________
Xcart 4.0.19 |
|||||||
|
#4
|
|||||||
|
|||||||
|
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
#5
|
|||||||
|
|||||||
|
Wow, awesome! Thanks.
__________________
Xcart 4.0.19 |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||