![]() |
Images Will Not Display - Why?
Hi,
I am trying to add images to the product description. The product requires symbols and these are already stored in skin1/images. I have used these images on the general template, but when I try and add them to the individual products, I always get the little red x. For my symbols I have tried the following: <img src="{$ImagesDir}/symbols/spring-flowering.gif" width="25" height="20" alt="Spring flowering" /> I have also tried using the full website (i.e. http://www.mysite/images/xxx.gif) where I have also put the images. Nothing seems to work. I have put the above code in skin1/customer/main/products.tpl and the image appears. But obviously I want it to be different for each product. So the images exist, yet I see unable to enter them in the product description. I have tried doing it via the online admin, but also importing on a CSV file. Please help as this is really frustrating. Is there something I am doing wrong? Regards, Bob |
Re: Images Will Not Display - Why?
The other interesting thing is that I can get the image to display on the main description. The above is for the brief description.
However on the main description I cannot get the image to display when I use the {$ImagesDir} link. It only works if I link to the image outside of x-cart. Bob |
Re: Images Will Not Display - Why?
have you tried using the wysiwyg mode to place your images. also make sure you do type in the full address where the image is found: www.yoursite.com/skin1/images/image.gif
Hope this helps |
Re: Images Will Not Display - Why?
You should use this in your item description:
Code:
<img src="skin1/images/symbols/spring-flowering.gif" width="25" height="20" alt="Spring flowering" /> |
Re: Images Will Not Display - Why?
Thanks for your replies - however the problem remains.
Nothing I do seems to work to get the image to appear in the short description. I'm beginning to think there is some kind of setting which doesn't allow images in the short description. Any other ideas? |
Re: Images Will Not Display - Why?
I had the same problem, and ended up taking a ticket out for help. I will pull that up and see what they did.
|
Re: Images Will Not Display - Why?
Thanks John. I'm out of support points so I'd appreciate that. I really can't understand why I can't link to the image, as I've tried everything I can think of.
|
Re: Images Will Not Display - Why?
Are you sure the display is not being truncated? If the image tag is past 300 characters it will be cut off. You can test it by opening skin1/customer/main/products.tpl and changing this:
Code:
{$products[product].descr|truncate:300:"...":true} to this: Code:
{$products[product].descr} |
Re: Images Will Not Display - Why?
I cant find my old ticket, I guess they deleted it. It had something to do with privacy settings and how customers could use my server space I think.
|
Re: Images Will Not Display - Why?
Bill,
I did what you suggest and hey presto...it now displays images! Thanks. |
All times are GMT -8. The time now is 02:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.