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

Adding images to product description - popping up unsecure

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-03-2008, 12:03 PM
 
LisaE LisaE is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 43
 

Default 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
__________________
Lisa Elliot
Xcart Gold v4.0.17
Linux platform
Reply With Quote
  #2  
Old 01-03-2008, 03:40 PM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 01-03-2008, 04:49 PM
 
LisaE LisaE is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 43
 

Default 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
__________________
Lisa Elliot
Xcart Gold v4.0.17
Linux platform
Reply With Quote
  #4  
Old 01-03-2008, 04:58 PM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 01-03-2008, 05:17 PM
 
LisaE LisaE is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 43
 

Default 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
__________________
Lisa Elliot
Xcart Gold v4.0.17
Linux platform
Reply With Quote
  #6  
Old 01-03-2008, 05:20 PM
 
balinor balinor is offline
 

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

Default 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="" />
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 01-03-2008, 05:43 PM
 
LisaE LisaE is offline
 

Advanced Member
  
Join Date: Jan 2006
Posts: 43
 

Default 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
__________________
Lisa Elliot
Xcart Gold v4.0.17
Linux platform
Reply With Quote
  #8  
Old 01-03-2008, 05:44 PM
 
balinor balinor is offline
 

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

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 01-14-2008, 04:51 AM
 
balinor balinor is offline
 

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

Default 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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 01-14-2008, 04:59 AM
 
nikkiknits nikkiknits is offline
 

Advanced Member
  
Join Date: Jan 2008
Posts: 66
 

Default Re: Adding images to product description - popping up unsecure

Thank you I have changed it to show my version. I hope this works
__________________
Xcart Gold 4.1.9
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 09:47 AM.

   

 
X-Cart forums © 2001-2020