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 :)

balinor 01-14-2008 05:07 AM

Re: Adding images to product description - popping up unsecure
 
Thanks! Now did you import the products via CSV or did you build them one at a time?

nikkiknits 01-14-2008 05:08 AM

Re: Adding images to product description - popping up unsecure
 
Hello Padraic,
I am building them one at a time.

Thank you,
Rachel

balinor 01-14-2008 05:15 AM

Re: Adding images to product description - popping up unsecure
 
Ok, and how did you upload the image? Did you use the 'browse' feature to pull it from the server/computer or did you type in a url?

nikkiknits 01-14-2008 05:15 AM

Re: Adding images to product description - popping up unsecure
 
Also when you say no to the security message it messes up the price of the item.
It changes the details part to undefined14.99 Instead of $14.99. The dollar sign is not secure I guess?

nikkiknits 01-14-2008 05:17 AM

Re: Adding images to product description - popping up unsecure
 
I typed in the URL. I can't see it when I use the browse.

nikkiknits 01-14-2008 05:32 AM

Re: Adding images to product description - popping up unsecure
 
OMG ok if when I enter the products one by one and I get the file straight from my computer, the system then puts it into the computer and then the message goes away!!! Did I get that right? I just tested it with another product and I don't get the message if when I put in a product I take the image from my desktop. By clicking browse and file from my local computer?

Is this the best way to do it? Thank you so much for your help?

balinor 01-14-2008 07:02 AM

Re: Adding images to product description - popping up unsecure
 
Yea, that's the way to do it...you can't use a URL as it will cause that problem. Either upload the image to the server first and browse to it, or just upload it from your computer.

nikkiknits 01-14-2008 07:09 AM

Re: Adding images to product description - popping up unsecure
 
YAHOO!!! Thank you so much!


All times are GMT -8. The time now is 06:29 AM.

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