Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Adding graphic below sidebox on category page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-30-2010, 08:56 AM
 
gatordp gatordp is offline
 

Advanced Member
  
Join Date: Aug 2009
Posts: 72
 

Default 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?
__________________
X-Cart Gold 4.5.4
Reply With Quote
  #2  
Old 05-30-2010, 12:18 PM
  ARW VISIONS's Avatar 
ARW VISIONS ARW VISIONS is offline
 

X-Man
  
Join Date: Jan 2007
Location: Pensacola, FL
Posts: 2,536
 

Default 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}
__________________
xcart 5.1.2
Reply With Quote
  #3  
Old 05-30-2010, 01:50 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default 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}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:04 PM.

   

 
X-Cart forums © 2001-2020