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)
-   -   Category image (https://forum.x-cart.com/showthread.php?t=29895)

pnm 03-22-2007 04:06 AM

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?

balinor 03-26-2007 06:26 PM

Re: Category image
 
Just add them to the category description as html.

pnm 03-28-2007 06:28 AM

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.

balinor 03-28-2007 07:25 AM

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="">

pnm 03-29-2007 12:38 AM

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

Can I try something else?

balinor 03-29-2007 03:30 AM

Re: Category image
 
Sorry, <img src="skin1/images/Justcoz.jpg" alt=""> is the correct code (add the missing s).

pnm 03-29-2007 04:23 AM

Re: Category image
 
Thanks Balinor,

Worked exactly how I wanted it.


All times are GMT -8. The time now is 09:34 AM.

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