Jump to content

Archived

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

gbaughman

"Add to Cart" always empty when SSL is on

Recommended Posts

After installing a dedicated SSL on the domain (cowtowncandy.com/store) and setting up the configure files for SSL, any time the "Add to Cart" button is clicked the page displays an empty shopping cart.  I have reviewed many posts related to this issue which all seem to point to incorrect entries in the configure.php, but mine seem to be correct.  The SSL works with or without "www" and I've tried both ways to no avail.  Any suggestions?

 

admin/includes/configure.php and includes/configure.php:

  define('HTTP_SERVER', 'http://cowtowncandy.com');
  define('HTTPS_SERVER', 'https://cowtowncandy.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', 'cowtowncandy.com');
  define('HTTPS_COOKIE_DOMAIN', 'cowtowncandy.com');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('HTTP_CATALOG_SERVER', 'http://cowtowncandy.com');
  define('HTTPS_CATALOG_SERVER', 'https://cowtowncandy.com');
  define('ENABLE_SSL_CATALOG', 'true');
  define('HTTP_SERVER', 'http://cowtowncandy.com');
  define('HTTPS_SERVER', 'https://cowtowncandy.com');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', 'cowtowncandy.com');
  define('HTTPS_COOKIE_DOMAIN', 'cowtowncandy.com');
  define('HTTP_COOKIE_PATH', '/');
  define('HTTPS_COOKIE_PATH', '/');
  define('DIR_WS_HTTP_CATALOG', '/store/');
  define('DIR_WS_HTTPS_CATALOG', '/store/');

Share this post


Link to post
Share on other sites

or try putting a dot in front of the domain name as so:

  define('HTTP_COOKIE_DOMAIN', '.cowtowncandy.com');
  define('HTTPS_COOKIE_DOMAIN', '.cowtowncandy.com');

I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites

Thanks for the reply, Henry.  No change in the results.  Still getting the "Your shopping cart is empty!" page.

Share this post


Link to post
Share on other sites

That didn't work either, Steve.  Seems I neglected to notice that I can no longer "Sign In" as a customer.  The page simply refreshes and prompts me to sign in, again.  I can still login to admin side, though.

Share this post


Link to post
Share on other sites

OK, probably need a more skilled person than me to come up with the solution, but I'll mention that in the past I had a problem with signing in and it was a cookie/cache issue apparently.  

 

Switching to another browser I could sign in but back to Chrome, I  could not.

 

Had to do some purging of data in history for Chrome then it worked.  May not apply to your situation but there it is.


I am not a professional webmaster or PHP coder by background or training but I will try to help as best I can.

I remember what it was like when I first started with osC. It can be overwhelming.

However, I strongly recommend considering hiring a professional for extensive site modifications, site cleaning, etc.

There are several good pros here on osCommerce. Look around, you'll figure out who they are.

Share this post


Link to post
Share on other sites


define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/store/');

define('HTTPS_COOKIE_PATH', '/store/');

define('DIR_WS_HTTP_CATALOG', '/store/');

define('DIR_WS_HTTPS_CATALOG', '/store/');

Share this post


Link to post
Share on other sites

Thanks, Steve.  Tried Firefox and could sign in as customer, but the "Add to Cart" is still empty, even with the cookie path changed per George/Henry.  

Share this post


Link to post
Share on other sites

Ok just checked my set up, and it is much the same as yours, but have you tried putting www. in front of all the domain name occurances? - worth a try


Now running on a fully modded, Mobile Friendly 2.3.4 Store with the Excellent MTS installed - See my profile for the mods installed ..... So much thanks for all the help given along the way by forum members.

Share this post


Link to post
Share on other sites

Tested buying a product working fine can not see the problem?? 
 
Regards
joli

Christmas Basket
A bundle of store favorites, including Christmas bear, 12 pack of hand-dipped truffles, assorted chocolates and Cody Crunch. Packed in a basket with plenty of Christmas Spirit. 

 

Order Information
Order #41 (Pending)
Order Total: $85.00 Order Date: Friday 05 December, 2014
Delivery Address
ffffffffffffff fffffffffffff
vvvvvvvvvvvvv
vvvvvvvvvvvvvvvv, Alabama vvvvvvvvvvvvv
United States
Shipping Method
Flat Rate (Best Way)
	
Products 	Total
1 x  	Christmas Basket 	$75.00
Billing Information
Billing Address
ffffffffffffff fffffffffffff
vvvvvvvvvvvvv
vvvvvvvvvvvvvvvv, Alabama vvvvvvvvvvvvv
United States
Payment Method
Cash on Delivery
	
Sub-Total: 	$75.00
Flat Rate (Best Way): 	$10.00
Total: 	$85.00
Order History
12/05/2014 	Pending 	this is a test

To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

I disabled SSL until a fix has been established.  Sorry, Joli, but I'm sure the client would appreciate your order.  And yes, Heather, I have tried with and without "www" numerous times to no avail.

Share this post


Link to post
Share on other sites

Well the only way to test is actually to go through the checkout process sorry if trying to help has annoyed anybody considering

 

I wrote TEST I do not see a problem best I just ignore  this topic  maybe hahah bye bye

 

Have you thought to check where the sessions are stored??

 

regards

Joli


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

No rant (where do you get that ) your words  how is it possibile to test / check  ?? when your reply for someone who may try to help is...

 

"Sorry, Joli, but I'm sure the client would appreciate your order."

 

bye bye

 

Regards

joli

 

PS: A rant from me you would notice :)

 

PPS : Simply no more suggestion from me quite sure you will find millions of other guys who will help .


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

How can I clarify when you nuke me ??


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

No nuke (where do you get that ) your words  how is it possible to test / check  ??  when your reply is vague for someone seeking help...


bye bye


 


Regards


Gary


 


PS: A nuke from me you would notice  :)


Share this post


Link to post
Share on other sites

Well Gray I ran through a check out process with your problem  your words

 

"I disabled SSL until a fix has been established.  Sorry, Joli, but I'm sure the client would appreciate your order.  And yes, Heather, I have tried with and without "www" numerous times to no avail."

 

and you seemed to be annoyed that i tried to test

 

"Sorry, Joli, but I'm sure the client would appreciate your order."

 

your words

 

PS: A nuke from me you would notice  :)

 

have always a backup so no problems with any type of threat  :)


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

You can both stop this tomfoolery right now, thanks.

 

/end


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

Sorry about the rant just do not like guys wasting my time looking at their sites, testing and then complaining :devil:

can be very frustrating sometimes

 

Regards

Joli


To improve is to change; to be perfect is to change often.

 

Share this post


Link to post
Share on other sites

I understand 100% the frustration of giving time and effort, only for it to be thrown in your face.

 

Just the other day I was called a [removed] by someone I spent a lot of 1-on-1 time with - that person is now persona-non-grata in terms of getting help from me. I think that's the best way, do what you can until the person decides that you/your help is no longer good enough, after which just ignore them.


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest Responsive osCommerce CE (community edition) here

Share this post


Link to post
Share on other sites

×