Forums / General Questions / "Your Shopping Cart is empty." message when adding product to cart

"Your Shopping Cart is empty." message when adding product to cart

Locked

Started by bah242 on 7 Aug 2010, 7:56 PM · Views: 6,910

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
7 Aug 2010, 7:56 PM
#1
bah242 avatar

bah242

New Zenner

Join Date:
Aug 2010
Posts:
1
Plugin Contributions:
0

"Your Shopping Cart is empty." message when adding product to cart

Hello,

I'm having with a site running on v1.3.8.

I have SSL enabled and I'm also redirecting all requests to http://optimumos.com to https://www.optimumos.com with a .htacess file located in the public_html directory per these instructions http://kb.siteground.com/article/How_to_redirect_my_website_to_be_opened_through_HTTPS.html.

If I go to a product detail page and select "add this to my cart" button, I get the message:

"Although this page is encrypted, the information you have entered is to be sent over an unencrypted connection and could easily be read by a third party.

Are you sure you want to continue sending this information?"

When I hit "Yes", I get the message "Your Shopping Cart is empty." and the product is not added to the cart.

I can add items to the shopping cart successfully as long as it's not from the product detail page. If I just use a blank .htaccess file without the redirection code, I can add products to the shopping cart from the product detail page without issue.

I've searched and read a lot of threads regarding similar issues and I've tried the solutions, but I'm still having the problem.

Here's an excerpt from my admin/includes/configuration.php file:

define('HTTP_SERVER', 'https://www.optimumos.com');
define('HTTPS_SERVER', 'https://www.optimumos.com');
define('HTTP_CATALOG_SERVER', 'https://www.optimumos.com');
define('HTTPS_CATALOG_SERVER', 'https://www.optimumos.com');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/admin/');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

Here's an excerpt from my includes/configuration.php file:

define('HTTP_SERVER', 'http://optimumos.com');
define('HTTPS_SERVER', 'https://www.optimumos.com');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

Thanks in advance for your help.

7 Aug 2010, 8:11 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: "Your Shopping Cart is empty." message when adding product to cart

What is your store side /includes/configuration.php file settings?

From your admin side file you already have the url's set to the www

The htaccess entry referenced is not necessary as ZenCart takes care of the redirection for secure pages only

you might want to add this to prevent duplicate content hit from the non-www

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.your_domain.com$
RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]

Zen-Venom Get Bitten