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)
-   -   Adding images to product description - popping up unsecure (https://forum.x-cart.com/showthread.php?t=36501)

LisaE 01-03-2008 12:03 PM

Adding images to product description - popping up unsecure
 
I am adding a small image to my product description. I have added it using HTML. It's fairly simple code (ie img tag, that links an a href file that they can then download for free).

But I noticed when each page loads it asks - this page contains secure and non-secure items ... do you want to display non-secure items. If they choose no, then they will not be able to view the image and just the alt tags show up.

Could someone tell me what I have done wrong and how to get rid of this message that pops up? Did I place the files and images in a section of xcart that is not secure? Is there a way of making this stuff secure so that my customers don't get that annoying little warning screen?

Thanks

LIsa

balinor 01-03-2008 03:40 PM

Re: Adding images to product description - popping up unsecure
 
Well, what code did you use? You can't use http:// or it will cause an insecure warning.

LisaE 01-03-2008 04:49 PM

Re: Adding images to product description - popping up unsecure
 
that was it ... thanks

I used the https:// and my secure server name ... and it took away the warnings.

I didn't know that .... just used the url from the ftp instead of the secure url.

thanks again

balinor 01-03-2008 04:58 PM

Re: Adding images to product description - popping up unsecure
 
Well, you don't want to do that either, as https is much slower, and that will drag down your site. You want to use something like this:

<img src="images/imagename.jpg" alt="" />

Change the directory name and image name to reflect your actual situation.

LisaE 01-03-2008 05:17 PM

Re: Adding images to product description - popping up unsecure
 
OK, I avoided that because I am not a programmer and didn't know how to point the img tag to the relative directory.

If my product is at this url
http://www.inthehoopdesigns.com/x-cart/product.php?productid=16630

what would be the relative img file?

Right now I am using the absolute URL of
https://inthehoopdesigns.secureserverdot.com/x-cart//files/master/designfest/January/ITHD-DecorativeSquares-4.jpg

balinor 01-03-2008 05:20 PM

Re: Adding images to product description - popping up unsecure
 
I'd suggest putting the images at the top level of your site, maybe in the images or files directory, and calling them like this:

<img src="images/imagename.jpg" alt="" />

LisaE 01-03-2008 05:43 PM

Re: Adding images to product description - popping up unsecure
 
when you refer to the top level of my site is the the directory that xcart is installed into? Would it be http://www.inthehoopdesigns.com/x-cart ? or is it http://www.inthehoopdesigns.com

My homepage is http://www.inthehoopdesigns.com/x-cart/home.php

balinor 01-03-2008 05:44 PM

Re: Adding images to product description - popping up unsecure
 
Use exactly what I just posted. The root is the directory you have x-cart installed in, so the x-cart sub-folder.

You should actually move the site to the actual site root before you go live by the way, getting rid of that x-cart directory.

balinor 01-14-2008 04:51 AM

Re: Adding images to product description - popping up unsecure
 
Welcome to the X-Cart forums nikkiknits ! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:

http://forum.x-cart.com/showthread.php?t=23970

Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your question correctly. Thanks! :)

nikkiknits 01-14-2008 04:59 AM

Re: Adding images to product description - popping up unsecure
 
Thank you I have changed it to show my version. I hope this works :)


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

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