Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2010
    Posts
    1
    Plugin Contributions
    0

    Default "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...ugh_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.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default 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
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.your_domain.com$
    RewriteRule ^(.*)$ http://www.your_domain.com/$1 [R=301]
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Replies: 5
    Last Post: 21 Apr 2013, 11:37 PM
  2. v139h SOLVED: When clicking "Add to Cart", message shows "Your Shopping Cart is Empty"
    By bryanearl in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 14 Nov 2012, 05:22 PM
  3. "Your shopping cart is empty!" error after adding item to cart...
    By pappaj333 in forum Installing on a Linux/Unix Server
    Replies: 12
    Last Post: 14 Aug 2010, 04:58 PM
  4. Replies: 7
    Last Post: 15 Jun 2010, 06:30 PM
  5. Replies: 16
    Last Post: 21 Apr 2010, 07:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg