Jump to content

Ssl And Submitdoc('addtobasket')


Guest Compucast
 Share

Recommended Posts

Guest Compucast

I have successfully set up a cart install to use shared SSL. CC seems to be working fine with this, I can view the admin/settings, do checkout, etc. - it works just fine as far as I can tell. Except for one major issue: "add item to basket" results in an improperly formatted URL.

Without SSL, it works fine. I click the "add" button, and I'm taken to: "http://HOSTNAME/cart.php?act=cart"

With SSL, it fails. I click the "add button, and I'm taken to: "http://HOSTNAMEindex.php/?act=viewProd&productid=2&ccUser=<string>"

Clearly, something is going wrong with "submitDoc('addtobasket')" But on the checkout page, the "Update Basket" button works fine, and it also uses submitDoc. I'm coming up blank when doing forum searches.

Any ideas? Anything I should know before I spend time looking? Many thanks.

Link to comment
Share on other sites

Guest Compucast

Please check Root SECURE Public HTML Folder to store in admin general setting it should be a slash there only.

What I have now works for shared SSL - except as described. If I make the changes you recommend, basically everything stops working. Thanks for trying to help though.

Shared SSL is set up on the host as follows:

Sites live in "acctname" and are accessed by - "http://NON-SSL.com"

A single secure cert is shared between all customers - "https://SSLDOM.com/acctname/"

For this site, CubeCart is installed in the root directory of the site. So, this is what I have set up:

Root SECURE Public HTML Folder to store: "/acctname/"

Absolute SECURE URL to store: "https://SSLDOM.com/acctname"

If I set "Enable SSL" to "Yes" - the admin area, checkout, and everything else works exactly as expected. The problem is that the "submitDoc" for buy/add to basket doesn't produce the correct URL. Clicking results in the URL: "http://NON-SSL.comindex.php/?act-viewCat&catId=4&ccUser=<string>"

That is plainly wrong, and what I really would like to know is some general information about submitDoc and how CC uses it, so I can try to debug. Any advice would be greatly appreciated.

Link to comment
Share on other sites

How about your

$glob['rootRel']

$glob['storeURL']

settings? Has $glob['rootRel'] "/" only?

The exact store URL is alwasy best. Description and ghost names may confuse sometimes. submitDoc is Javascript function with no relation to this isue but settings.

Link to comment
Share on other sites

Guest Compucast

$glob['rootRel']

$glob['storeURL']

settings? Has $glob['rootRel'] "/" only?

This code added to the bottom of index.php:

print_r ($glob['storeURL']); 

print "<br />";

print_r ($glob['rootRel']);

Produces these results:

http://storename.com

/

Another Update: I installed an SSL certificate, etc. for the site - it's no longer using "shared" SSL - and changed all the settings appropriately. There was zero change in the faulty behavior - "add to basket" directs to an invalid URL. All expected SSL URLs work properly: admin area, view cart, checkout, etc. But if you try to add an item to the cart, it fails as described above. As soon as I set "Enable SSL" to "No" - I can successfully add items again.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...