X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   different header swf in different product categories (https://forum.x-cart.com/showthread.php?t=9338)

angenose 09-13-2004 08:13 PM

different header swf in different product categories
 
i'm trying to place different header images or swf files in the head.tpl template file... but this file uses only one for the whole catalog.

Anyone know how I could make it so that each category dispalys a different image or swf?
:?

shan 09-14-2004 08:26 AM

do something like this ...

name your images 1.gif, 2.gif etc

then in the header use

Code:

{if $cat}
[img]{$ImagesDir}/{$cat}.gif[/img]
{else}
<img src="{$ImagesDir}/normal_image.gif"}
{/if}


what were doing here is having a different image for each category and naming it after the category id number. all images are stored in skin1/images folder.

we also have an image called say normal_image.gif for all the times that your not viewing a category

that should give you some idea and you could expand on it from there

angenose 09-15-2004 05:07 PM

Yeah! that worked!
I just replaced the img src tags to point to my swf's and it worked fine.

Thanks Shan :D

adpboss 09-15-2004 05:32 PM

Nice mod, move to Custom Mods?


All times are GMT -8. The time now is 01:02 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.