Zen Cart Logo
Forums / Installing on a Windows Server / SSL Issues - not able to add items to the cart

SSL Issues - not able to add items to the cart

Views: 1,365

Results 1 to 4 of 4
15 Feb 2011, 11:59 PM
#1
dencom avatar

dencom

New Zenner

Join Date:
Sep 2006
Posts:
12
Plugin Contributions:
0

SSL Issues - not able to add items to the cart

Hi.
I have had an issue for a while now.
When setting the config.php to what (i think) the correct settings should be you cannot had items to the cart.

On Windows Server, if I configure the config.php to
This works (But is using the wrong domain names for the end users web site)
define('HTTP_SERVER', 'http://cc.dencom.co.nz/techbooks');
define('HTTPS_SERVER', 'https://cc.dencom.co.nz/techbooks');

This does not work, you cannot cannot add items to the Cart
define('HTTP_SERVER', 'http://www.techbooks.co.nz');
define('HTTPS_SERVER', 'https://cc.dencom.co.nz/techbooks');

(i have a test server with a Shared Cert which also has the same issue)
define('HTTP_SERVER', 'http://www.techbooks.co.nz');
define('HTTPS_SERVER', 'https://www.techbooks.co.nz/techbooks');

In teh last case using the shared Cert
https://www.techbooks.co.nz/techbooks is actually
https://cc.dencom.co.nz/techbooks

Sessions id's are stored in the DB.

Ross

16 Feb 2011, 1:56 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: SSL Issues - not able to add items to the cart

I arrived at (non-SSL) http://cc.dencom.co.nz/techbooks/ without problems.

Then added a product to the cart - again no problem.

Clicked the Checkout button and it took me to the secure **Login page** (as it should be). There were no errors.

Worked fine for me ...

16 Feb 2011, 7:49 PM
#3
dencom avatar

dencom

New Zenner

Join Date:
Sep 2006
Posts:
12
Plugin Contributions:
0

Re: SSL Issues - not able to add items to the cart

Yes it does work for the Live Site, but I have had to set the configure.php to use the wrong domain names. I can only get it working using the cc.dencom.co.nz

Should be (using a Shared Cert, in the Test Server)
define('HTTP_SERVER', 'http://www.techbooks.co.nz');
define('HTTPS_SERVER', 'https://www.techbooks.co.nz/techbooks');

Seems to be an issue with the ZenID when changing from one virtual server to another. As I noticed a customer cannot login also.

16 Feb 2011, 11:05 PM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: SSL Issues - not able to add items to the cart

dencom:

Yes it does work for the Live Site, but I have had to set the configure.php to use the wrong domain names. I can only get it working using the cc.dencom.co.nz ...

Any SSL cert only works for the domain it has been purchased/issued for.

If the cert was issued explicitly for http://cc.dencom.co.nz then it will not work for http://www.techbooks.co.nz no matter how you set your 2 configure.php files.

There are many other posts scattered through the forums dealing with exactly this same issue.

For anyone else having this problem please see **this tutorial** which I posted about 12 months ago.