X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Adding graphic below sidebox on category page (https://forum.x-cart.com/showthread.php?t=53971)

gatordp 05-30-2010 08:56 AM

Adding graphic below sidebox on category page
 
I have a left sidebar on my category pages and my product pages. It currently has 3 boxes: Categories, Company Info and Best Sellers

I have been reading about sideboxes but can't find a solution. I basically want to add a static graphic below these boxes on my category pages and my product pages.

I tried messing with the menu_dialog.tpl file but when I added my image as a new <div class="box"> it didn't work.

Anyone know what file I need to edit to add my graphic?

ARW VISIONS 05-30-2010 12:18 PM

Re: Adding graphic below sidebox on category page
 
you need to add it to home.tpl in the left sidebar section, then put a conditional if statement around it so that it only shows only show on the pages you want.

probably this would work.

{if $cat ne ''}<div><img src="{$ImagesDir}/yourimage.jpg" alt="" />{/if}

cflsystems 05-30-2010 01:50 PM

Re: Adding graphic below sidebox on category page
 
... and you need to close the div before the closing {/if}; also is always better to have width and height for the image

{if $cat ne ''}<div><img src="{$ImagesDir}/yourimage.jpg" width="xxx" height="xxx" alt="" /></div>{/if}


All times are GMT -8. The time now is 05:11 PM.

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