Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

IE message


Guest

Recommended Posts

Posted

Hi,

I added on PayPal Verified Seal with Credit Card images contribution http://www.oscommerce.com/community/contri...ns,2331/page,10 and IE now keeps requesting "This page contains secure and non secure items", " Do you want to display the non-secure items"

 

I know this is happening because the imgaes are sitting outside of the https:// location.

 

How can i stop this from happening? as it is very annoying to constantly hvae to click yes or no on every secure page.

 

regards,

raphael.

Posted

No, it is happening because there is a non-secure link on the page, probably from that contribution. You need to change that link to https or disable if while on secure pages.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
No, it is happening because there is a non-secure link on the page, probably from that contribution. You need to change that link to https or disable if while on secure pages.

 

Jack

Hi Jack,

Do you know how i would do that, i am willing to do the modification i just dont know how to do it.

Any assitance would be great.

 

regards,

raphael.

Posted
If you mean how to disable it, place this code before the link
<?php if ($request_type == NONSSL) { ?>

and this after

<?php } ?>

 

Jack

Hi Jack,

Thanks alot for your help i have tried this and unfortunately it continues to do it.

The modified code is below.

 

define('FOOTER_TEXT_BODY', '<?php if ($request_type == NONSSL) { ?><center><!-- Begin Official PayPal Seal -->

<a href="https://www.paypal.com/verified/[email protected]" target="_blank"><img src="http://www.paypal.com/en_US/i/icon/verification_seal.gif" border="0" alt="Official PayPal Seal"><P><IMG SRC="http://www.combatcentres.com/estore/images/VISA.jpg" ALT="VISA Card" BORDER="0">

<IMG SRC="http://www.combatcentres.com/estore/images/MasterCard.jpg" ALT="Master Card" BORDER=0>

<IMG SRC="http://www.combatcentres.com/estore/images/AmxCard.jpg" ALT="American Express" BORDER=0>

</P></A><!-- End Official PayPal Seal --></center><?php } ?>'. 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');

?>

 

Can you tell me what is potentially wrong?

Posted

I had the same problem, I added the verfied business seal to the main page below the info box, problem was when you went to check out it would do the security thing because the seal links to Paypal unsecured page to show you are a verfied business.

 

The only two fixes I can think since I don't know php code

A:) remove the seal from your site

B:) or add the tags like Jack said

 

Here is how it looks in footer.php

	<td align="center" class="smallText">
<img src="../catalog/images/visa.gif"></img>
<?php if ($request_type == NONSSL) { ?>
<!-- Begin Official PayPal Seal --><a href="https://www.paypal.com/us/verified/pal=gpmail%40signature%2dseries%2enet" target="_blank"><img src="http://www.paypal.com/en_US/i/icon/verification_seal.gif" border="0" alt="Official PayPal Seal"></A><!-- End Official PayPal Seal -->
<?php } ?>
</td>

 

my code is a littel different because mine is acually in the includes/footer.php, yours looks like it was added as a mod to the languages/english.php script.

 

try this:

define('FOOTER_TEXT_BODY', '<center>
<?php if ($request_type == NONSSL) { ?><!-- Begin Official PayPal Seal -->
<a href="https://www.paypal.com/verified/[email protected]" target="_blank"><img src="http://www.paypal.com/en_US/i/icon/verification_seal.gif" border="0" alt="Official PayPal Seal"><?php } ?><P><IMG SRC="http://www.combatcentres.com/estore/images/VISA.jpg" ALT="VISA Card" BORDER="0"><IMG SRC="http://www.combatcentres.com/estore/images/MasterCard.jpg" ALT="Master Card" BORDER=0><IMG SRC="http://www.combatcentres.com/estore/images/AmxCard.jpg" ALT="American Express" BORDER=0></P></A><!-- End Official PayPal Seal -->
</center>'. 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');
?>

 

i moved Jacks code to the inside of your center tag, and I noticed the only image that links is the paypal seal which ends before the Visa code, so I inserted jacks ending tag to the end of the seal link instead of at the end of all the script.

 

If this doesn't work you can always remove the code, and just insert it directly into the footer.php scripting.

Just so you what SHOULD happen is when you go to your cart the paypal seal doesn't show up because its being ignored since you entered a secure area.

Posted

I am having the same issue. It just started, for some reason, and for the life of me I can't figure out which image is the offending one.

 

When I view source, I do see that some say HTTP, but those are relative links in my header.php, so should I change them to absolute links using HTTPS? I'm getting more confused the more I look at it. :blink:

 

Is there anything I can do to figure out which link is not secure?

 

Cathi

Posted
Hi Jack,

Thanks alot for your help i have tried this and unfortunately it continues to do it.

The modified code is below.

 

define('FOOTER_TEXT_BODY', '<?php if ($request_type == NONSSL) { ?><center><!-- Begin Official PayPal Seal -->

<a href="https://www.paypal.com/verified/[email protected]" target="_blank"><img src="http://www.paypal.com/en_US/i/icon/verification_seal.gif" border="0" alt="Official PayPal Seal"><P><IMG SRC="http://www.combatcentres.com/estore/images/VISA.jpg" ALT="VISA Card" BORDER="0">

<IMG SRC="http://www.combatcentres.com/estore/images/MasterCard.jpg" ALT="Master Card" BORDER=0>

<IMG SRC="http://www.combatcentres.com/estore/images/AmxCard.jpg" ALT="American Express" BORDER=0>

</P></A><!-- End Official PayPal Seal --></center><?php } ?>'. 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>');

?>

 

Can you tell me what is potentially wrong?

I don't think you can include the php code in a define like that. You will need to add the code to your footer.php file.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted
I don't think you can include the php code in a define like that. You will need to add the code to your footer.php file.

 

Jack

Thanks jack mcs,

I have removed the little credit card pictures as they dont really do much for my site anyways and left the paypal verified image, changed it to https instead of http as you advised on your first reply and it works fine.

 

Thanks heaps for your help.

 

Regards,

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...