Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Secure SSL


UnseenMenace

Recommended Posts

My webhost has provided me with SSL space which allows me to upload files and change file permissions along with creating forms however this space is remote from my host address... for example

 

http://www.mywebsite.com is my website address

https://www.securedomains.com/mywebsite.com is the address for the SSL

 

as such im not sure how to get this working with OSCommerce which is hosted on my website

 

Any advice or suggestions would be most welcome

Link to comment
Share on other sites

My webhost has provided me with SSL space which allows me to upload files and change file permissions along with creating forms however this space is remote from my host address... for example

 

http://www.mywebsite.com is my website address

https://www.securedomains.com/mywebsite.com is the address for the SSL

 

as such im not sure how to get this working with OSCommerce which is hosted on my website

 

Any advice or suggestions would be most welcome

 

It's not really remote from your webspace, it's an ssl enabled proxy server which sits between the remote user and your server. So it's just passing on requests to your regular server.

 

Just change these two lines:

 

define('HTTPS_SERVER', 'https://www.securedomains.com/mywebsite.com');

define('ENABLE_SSL', true);

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

includes/configure.php

admin/includes/configure.php

 

Don't edit files using the osCommerce File Manager, download, take a backup (just in case), edit in a plain text editor like Notepad, and then upload again.

 

Vger

Link to comment
Share on other sites

Thank you very much for your help so far but could you please inform me as to where I find these lines or in what file assuming that I have to edit it by hand

 

Assuming you're using osC in the catalog folder it's

 

catalog/includes/configure.php

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Assuming you're using osC in the catalog folder it's

 

catalog/includes/configure.php

 

ok ive done what has been suggested here however im still getting no joy

the securedomains provides this information, do i need to put this in oscommerce somewhere ?

 

1 - Integrate - First of all design your order form, once this is done follow these instructions on how to integrate our scripts into your order form.

 

 

Integrating your order form in to secure websites is very simple. You just have to add a few lines of HTML code to your order form:-

 

This line calls the script and is required:

 

<form action="https://www.securedomains.com/website.com/anyform.cgi" method=post>

 

This line is used to create "required" fields, place the name of any required feilds in the value tag. This line is not required:

 

<input type=hidden name="required" value="ccnumber;expiry;name">

 

Use this line of code to call a "Thank You" page. This line is not required:

 

<input type=hidden name="redirect" value=https://www.securedomains.com/website.com/a-file.html>

 

So if your user name was fred you could use the following:-

 

<form action="https://www.securedomains.com/website.com/anyform.cgi" method=post>

<input type=hidden name="required" value="ccnumber;expiry;name">

<input type=hidden name="redirect" value=https://www.securedomains.com/website.com/done.html>

 

YOUR ORDER FORM FEILDS HERE

 

</FORM>

 

Thats all there is to it!

 

 

2 - Upload - Once you have integrated your order form with our script you should upload your order form to the secure server

 

 

Currently Ive emailed my host for advice but am yet to recieve a reply, so I was wondering if anyone here had further suggestions on making this work

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...