View Single Post
  #55  
Old 07-11-2007, 07:24 AM
 
smek smek is offline
 

Advanced Member
  
Join Date: Jan 2004
Posts: 54
 

Question Re: common if/then modifications I make to x-cart...

Thanks everyone, this thread has saved me countless hours! However, I am having a small cosmetic problem...I setup a long list of "if statements" so that each category would show a specific flash banner. This works well, however, since it is several lines of code, the first IFSTATEMENT goes into effect it is fine because it is the first line. BUT if lets say the last piece of code goes into effect there is a big space above it where the other inactive coding was. Its best to look at the pictures: Here are some attached examples.

EXAMPLE:
Code:
{if $cat eq "1"} FLASH BANNER FOR FRAGRANCES WILL GO HERE {/if}

I've tried adding the code to a sepearte TPL file but that woudlnt parse correctly.
There must be an easy not to have the inactive code take up space....heres a brain buster for you experts but im sure this has been asked before....although i coudl not find anyting about this on this forum.


Thanks in ADVANCE!
Attached Thumbnails
Click image for larger version

Name:	first category.jpg
Views:	201
Size:	62.7 KB
ID:	458  Click image for larger version

Name:	last category.jpg
Views:	181
Size:	58.4 KB
ID:	459  
__________________
xcart 4.5.2
Reply With Quote