Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

shop embedded in i-frame, how to show SSL padlock in browser?


andyEPP

Recommended Posts

Posted

Hi :)

 

I have built a new website for a software company and included OSCommerce 2.2 in this.

 

Due to the way they wanted the site built, I ended up embedding the store in an i-frame. The store works absolutely perfect, currently using the Protx Form to process transactions. I have a SSL certificate installed and working with the store (checkout + address book/personal info encrypted as expected).

 

The next bit of headscratching is how to display the padlock icon in the browser.

I understand that because the shop is embedded in an i-frame the top level document isnt encrypted, and so no padlock icon in the browser. Using firefox to break out of the i-frame and display the shop in its own browser results in the https:// address being displayed and the padlock icon in the bottom right corner too.

 

I'm very open to suggestions on this :) In hindsight I should have realised this would happen but there was such a rush on to produce a working site I took the quick and easy (at the time!) option.

 

thanks

 

andy

 

http://www.easypricepro.com/store.php <- browsing customer view of the store

http://www.easypricepro.com/catalog/index.php <- "breakout" view

Posted
just get rid of the iFrame and put the contents in a scrolling <div>.

 

 

that a good idea, ill give it a try

thanks :)

Posted

well, it works, but not quite how i wanted it.

http://www.easypricepro.com/div_shop.php

the initial page displays correctly, but once a link is clicked the shop breaks out of the div's i have setup and goes full browser.

 

i guess ill go with my original fudge of https:// links to all the shop entry paths and leave it embedded in the iframe.

 

you live and learn :)

Posted

A lot of browsers are set to automatically block iframes, so take the first piece of advice and drop them entirely.

 

Vger

Posted

you're still treating this as two separate pages. I viewed the source code of that page you posted and you have two blocks of code - both with opening <html>, <head> and <body> tags - in the same page.

 

It is entirely possible to put all your store middle content in a scrolling <div>. Even if you find this too much you should definitely drop the iFrame.

Archived

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

×
×
  • Create New...