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

Category image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-22-2007, 04:06 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Category image

Is there a simple way to add a gif or multiple gif's within a specific category.

Eg. we have a cake category where a quote is required, currently the customer cannot purchase online at this stage. So we would like to display a number of pics between the dialog.tpl box and the category description.

we have no subcategories.

Can anyone help?
__________________
version 4.018 xcart
Reply With Quote
  #2  
Old 03-26-2007, 06:26 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Category image

Just add them to the category description as html.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-28-2007, 06:28 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Category image

Thanks, I tried that with the following code:-

<img src="{$ImagesDir}/Justcoz.jpg">

and the result was just an outline of a box with a red x in the top left corner within a smaller box.

I've used this bit of code in other parts of the web and it works fine.

Am I missing something in the code or is there an alternative?

Thanks.
__________________
version 4.018 xcart
Reply With Quote
  #4  
Old 03-28-2007, 07:25 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Category image

You can't use Smarty in the category descriptions, you need to use regular html:

<img src="skin1/image/Justcoz.jpg" alt="">
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 03-29-2007, 12:38 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Category image

Thanks Balinor, but I still get the same result with just the x within the box.

Can I try something else?
__________________
version 4.018 xcart
Reply With Quote
  #6  
Old 03-29-2007, 03:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Category image

Sorry, <img src="skin1/images/Justcoz.jpg" alt=""> is the correct code (add the missing s).
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 03-29-2007, 04:23 AM
 
pnm pnm is offline
 

Advanced Member
  
Join Date: Jun 2006
Posts: 99
 

Default Re: Category image

Thanks Balinor,

Worked exactly how I wanted it.
__________________
version 4.018 xcart
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 05:13 PM.

   

 
X-Cart forums © 2001-2020