Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2011
    Posts
    14
    Plugin Contributions
    0

    Default Just turned on ssl and now I can't add anything to the cart.

    When I click add to cart it just returns with a page "Your shopping cart is empty". It worked fine before changing ssl. Any thoughts?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    7,929
    Plugin Contributions
    64

    Default Re: Just turned on ssl and now I can't add anything to the cart.

    When you "turned on SSL", what changes did you make to your store's /includes/configure.php and /admin/includes/configure.php?

  3. #3
    Join Date
    Dec 2011
    Posts
    14
    Plugin Contributions
    0

    Default Re: Just turned on ssl and now I can't add anything to the cart.

    Quote Originally Posted by lat9 View Post
    When you "turned on SSL", what changes did you make to your store's /includes/configure.php and /admin/includes/configure.php?
    Thanks for the reply. Initially, I set just the "HTTPS_SERVER" and the "ENABLE_SSL", but I just changed the normal "HTTP_SERVER" to the https version of the site and that seems to have fixed it. Is there something wrong with the setup that I have to do it this way? I know I want the site only in https, but for testing purposes I didn't enable both. Is there anything else I should be looking out for?

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    7,929
    Plugin Contributions
    64

    Default Re: Just turned on ssl and now I can't add anything to the cart.

    Nope, what you corrected to is the "suggested" method:

    HTTP_SERVER ... https://www.example.com
    HTTPS_SERVER ... https://www.example.com
    USE_SSL ..... 'true'

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,287
    Plugin Contributions
    2

    Default Re: Just turned on ssl and now I can't add anything to the cart.

    Quote Originally Posted by greg5sb View Post
    Thanks for the reply. Initially, I set just the "HTTPS_SERVER" and the "ENABLE_SSL", but I just changed the normal "HTTP_SERVER" to the https version of the site and that seems to have fixed it. Is there something wrong with the setup that I have to do it this way? I know I want the site only in https, but for testing purposes I didn't enable both. Is there anything else I should be looking out for?
    your initial setup should have worked. the reason why it did not work, is probably due to a hard coded link. for years, there were plenty of ZC installs operating the way that you had it set up. in my experience, when a ZC exhibits the behavior that you saw, it means after you add something to the cart, ZC redirects you to:

    https://YOUR_SITE/index.php?main_page=shopping_cart

    when it should be redirecting you to:

    http://YOUR_SITE/index.php?main_page=shopping_cart

    or vice-versa. adding something to the cart from a non-ssl page needs to go to a non-ssl shopping cart page, and adding something from a SSL page needs to go to a SSL shopping cart page. it's only after a customer logs in that i believe those 2 carts get combined.

    in any event, i'm taking guesses based on past experience....

    Quote Originally Posted by lat9 View Post
    Nope, what you corrected to is the "suggested" method:

    HTTP_SERVER ... https://www.example.com
    HTTPS_SERVER ... https://www.example.com
    USE_SSL ..... 'true'
    to be clear, this is the suggested method for enabling SSL for ALL pages. for years, ZC worked fine the other way and i see no reason why it should not today....

    best.
    helpful? while i do it for fun, u can say thanks with the green. bitcoin also welcome...

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    6,800
    Plugin Contributions
    8

    Default Re: Just turned on ssl and now I can't add anything to the cart.

    For eight months now, Chrome has been telling folks that any zen cart page not presented in https:// is insecure regardless of the validity of the site's SSL.

    Starting this month Chrome will declare ANY site as insecure that does not present content as https://.

    Firefox started this in motion in 2015 and actually notifies folks as of January last year.

    Unless you can re-educate the customer base, they are going to be scared off by such a claim. I'm sure the others will follow suit soon.

 

 

Similar Threads

  1. v151 turned on ssl and now can't log in
    By ken1 in forum General Questions
    Replies: 20
    Last Post: 9 May 2014, 12:16 AM
  2. Replies: 2
    Last Post: 24 May 2012, 02:42 PM
  3. Add to Cart = No and the Buy Now Button
    By MatthiasW in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 5 Nov 2010, 11:58 PM
  4. Enabling SSL - Just changed cofigure.php files and now I'm getting an error
    By bloome in forum Installing on a Linux/Unix Server
    Replies: 24
    Last Post: 17 Apr 2008, 07:20 PM
  5. Get just the add to cart button and cart
    By Jblack4083 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2007, 05:07 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR