Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Browsing from secure to unsecure stays the same


dj07

Recommended Posts

Hello.

After heavy changes to my site mainly to header.php my oscommerce is inside my main boddy site, The problem i`m having right now is about secure and unsecure browsing

 

When you go to my site you browsing on http and when you click a secure area per say My account link it automatically changes to https secure server.If now you click per say Cart Contents link it will automatically switch back to http unsecure, mainly any area that you click that is not secure it automatically switch back from https to http Except for the links in my header.

I have link buttons as well as a home button that when you click in them from a secure area should automatically switch to unsecure but it stays http secure even if just looking at a product.

 

Here is the link to my site Here is the link to my site

 

If you click "My Account" link it will go to secure https, now when you click "cart Contents" it automatically goes back to unsecure http,but not the same happens when you go to "My Account" and then click per say the home button at the top or the home link to the right side it doen't turn to http but stays https secure.

 

The problem does not seem to be configure.php , i suspect about application_top.php or header.php

 

Please any help appreciated.

Link to comment
Share on other sites

the simple answer is your cart does not need to be secure it contains only information about what your client has ordered, make some test purchases and see if your checkout is under a secure url, if it isnt and you are accepting credit cards directly on your site you have a problem

Link to comment
Share on other sites

the simple answer is your cart does not need to be secure it contains only information about what your client has ordered, make some test purchases and see if your checkout is under a secure url, if it isnt and you are accepting credit cards directly on your site you have a problem

 

 

Well my problem is not the secure part but the transition fron secure to non secure.When a customer in a secure area clicks any of the button links or the home button the instead of been sent to a http the browser keeps the secure hhtps .

 

Try clicking the my account link and then the cart contents link and notice how the browser bar changes from secure to non-secure , if instead after clicking the my account link you click in ant of the buttons in the top of the site (home,xbox,ps2 or any of the button icons at the left) you will notice that the browser does not change from secure to non-secure but it will keep the secure browsing .

Link to comment
Share on other sites

It's because you have hard coded links with a relative path. You need to use the tep_href_link() function.

 

BTW - Your site is painfully slow to load. Even without all those broken images.

Link to comment
Share on other sites

It's because you have hard coded links with a relative path. You need to use the tep_href_link() function.

 

BTW - Your site is painfully slow to load. Even without all those broken images.

 

 

You are correct those links are hard coded but even manually replacing then is no good.i visited this two files as per your recomendation :

/includes/functions/html_output.php -> line 15

/admin/includes/functions/html_output.php -> line 15

 

But don't really know what to coment. :'(

 

I'm aware of the very slow load and going to work on optimazing soon

 

Thanks again for your help and recomendations.

Link to comment
Share on other sites

I don't think you understood what I meant. You have links like:

 

<a href="index.php"><img name="n1" src="interface_images/1.gif" width="162" height="128" border="0" alt=""></a>

 

they should be at least like this:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><img name="n1" src="interface_images/1.gif" width="162" height="128" border="0" alt=""></a>

Link to comment
Share on other sites

I don't think you understood what I meant. You have links like:

 

<a href="index.php"><img name="n1" src="interface_images/1.gif" width="162" height="128" border="0" alt=""></a>

 

they should be at least like this:

 

<a href="<?php echo tep_href_link(FILENAME_DEFAULT); ?>"><img name="n1" src="interface_images/1.gif" width="162" height="128" border="0" alt=""></a>

 

Thanks a lot....Almost got it,just need to figure the links to static pages on those buttons to the left side .Your advice really helped.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...