AbanteCart Community
eCommerce construction => General Discussion => Topic started by: kelbel3abh on December 29, 2014, 07:43:51 PM
-
Hi, I used my own icons for the menu. I uploaded them through that part of the admin. However, I am getting a security warning on the checkout page because they arent going into https:// mode like all the other images. How do I fix this?
Thanks!
-
Here is the image:
https://beddingforbunks.com/resources/image/18/88/8.png
http://beddingforbunks.com/resources/image/18/88/8.png
Both links work, but the shopping cart page does not put this image into https mode.
Hope this makes sense and someone has an idea about it. I have spent hours trying to figure it out.
I have even tried to revert back to the icons, but I get a forbidden page when I try to use those. Using my own graphics was actually a work around for that problem.
-
Here is that portion of code from the checkout page. You will see that the links are not relative links in this portion of the code. They are everywhere else. I am a little surprised that no one else has had this issue.
<ul id="main_menu_top" class="nav main_menu">
<li data-id="menu_specials" class="dropdown hover"><a class="top nobackground" href="https://beddingforbunks.com/index.php?rt=content/content&content_id=5" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Specials</span></a></li>
<li data-id="menu_login" class="dropdown hover"><a class="top nobackground" href="https://beddingforbunks.com/index.php?rt=account/login" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Login</span></a></li>
<li data-id="menu_account" class="dropdown hover"><a class="top nobackground" href="https://beddingforbunks.com/index.php?rt=account/account" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Account</span></a></li>
<li data-id="menu_cart" class="dropdown hover"><a class="top nobackground" href="https://beddingforbunks.com/index.php?rt=checkout/cart" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Cart</span></a></li>
<li data-id="menu_contact" class="dropdown hover"><a class="top nobackground" href="http://beddingforbunks.com/index.php?rt=content/contact" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Contact</span></a></li>
</ul>
-
try to use URLs without protocol prefix...
http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/
-
Right, the problem is, I am not the one putting the absolute paths to the urls. I am just uploading the images in the resource library and the cart is putting them in as an absolute, rather than a relative path. How do I fix this?
-
what the version of abantecart do you use?
-
Sorry for the delay. I didn't realize anyone responded. I believe I have 1.1.9 installed.
-
is SSL on in your settings?
-
Yes, and, it goes into SSL just fine, but it shows errors to the customer because not all the content is in SSL. The only thing not in HTTPS is those images (icons) on the top left. When I look at the code, it is showing them as absolute urls (http://, not https://) and not relative ones. But, I have no control over it. I just uploaded the images in the admin (Design/Menu.)
-
Here is part of the source code for the shopping cart page. It is only these icons that aren't in https://
<!-- Header Start -->
<header>
<div class="headerstrip">
<div class="container">
<div class="row">
<div class="span12">
<a class="logo pull-left" href="https://beddingforbunks.com/"><img src="resources/image/18/82/7.png"
title="Bedding for Bunks"
alt="Bedding for Bunks"/></a>
<div class="headerstrip_blocks">
<div class="pull-left ml10"></div>
<div class="pull-left"></div>
<div class="pull-left"></div>
<div class="pull-right"><div class="navbar" id="topnav">
<div class="navbar-inner">
<ul id="main_menu_top" class="nav main_menu">
<li data-id="menu_specials" class="dropdown hover"><a class="top nobackground" href="http://beddingforbunks.com/index.php?rt=content/content&content_id=5" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Specials</span></a></li>
<li data-id="menu_login" class="dropdown hover"><a class="top nobackground" href="http://beddingforbunks.com/index.php?rt=account/login" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Login</span></a></li>
<li data-id="menu_account" class="dropdown hover"><a class="top nobackground" href="http://beddingforbunks.com/index.php?rt=account/account" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Account</span></a></li>
<li data-id="menu_cart" class="dropdown hover"><a class="top nobackground" href="http://beddingforbunks.com/index.php?rt=checkout/cart" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Cart</span></a></li>
<li data-id="menu_contact" class="dropdown hover"><a class="top nobackground" href="http://beddingforbunks.com/index.php?rt=content/contact" ><img class="menu_image" src="http://beddingforbunks.com/resources/image/18/88/8.png" alt="" /><span class="menu_text">Contact</span></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div class="headerdetails">
<!-- header blocks placeholder -->
<div class="pull-left"></div>
<div class="pull-left"></div>
<div class="pull-left"></div>
<div class="pull-right"><div class="header_block">
<img src="../callus_banner.gif" /> </div></div>
<!-- header blocks placeholder (EOF) -->
</div>
</div>
</header>
<!-- Header End -->
-
What version of AbanteCart do yo use? This sounds like an old issue.
-
1.1.9 I just haven't yet updated to the most recent version because I am still having some difficulty with saving my template changes as an extension.
-
Hey, guys,
Just so you know, I did update my site to 2.0 today with no problems and those icons I made and uploaded in MENU are still not going into https:// on the checkout page. Can someone help!
I don't know what the problem is, but when I view source, it is still showing the images as absolute urls and not relative ones.
- Kelly
-
Solution here https://github.com/abantecart/abantecart-src/commit/193322ccf92915bd5578d05450002e803734e2e9
kelbel3abh, check your cart. i changed your code.
-
Solution here https://github.com/abantecart/abantecart-src/commit/193322ccf92915bd5578d05450002e803734e2e9
I'm having the same issue. I changed HTTP_DIR_RESOURCE to HTTPS_DIR_RESOURCE, but it didn't solve the problem.