Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    4
    Plugin Contributions
    0

    Default SSL urls work for certain links but not for others

    Hi,
    I am a new Zencart user, and I have a site hosted on a dedicated server managed thru Plesk. I have defined my domain and have got the ssl certificate installed for the domain. I can access my site thru http and https when supplying the domain name. However some of the urls, which don't actually map to a physical file, don't seem to work with the ssl url. For http://www.domain.com/products_all works, but https://www.domain.com/products_all doesn't work. Can anyone help?

    Thanks

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

    Default Re: SSL urls work for certain links but not for others

    Shopping is not set to be under https and ZenCart auto switches from http to https automatically for those pages where it is required

    If you have it setup to use ssl
    https://www.zen-cart.com/tutorials/index.php?article=14

  3. #3
    Join Date
    Apr 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: SSL urls work for certain links but not for others

    Thanks Kobra, I did follow that document while setting the SSL up. I guess the problem could be that in the templates that i am using, may be I am referring to https urls, when it should have been http. Now trying to figure out how to edit that.

  4. #4
    Join Date
    Apr 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: SSL urls work for certain links but not for others

    Just clarifying the above post, if Zen auto switches from http to https where required, we shouldn't be seeing any links beginning with https:// when we are on the site? On my sight I can see that the login button is actually linking to https://www.domain.com/login. Shouldn't this be http://www.domain.com/login? Similarly when I add the items to cart, the checkout link points to https://www.domain.com/checkout_shipping. This also I believe should be http://www.domain.com/checkout_shipping. Am I right in these assumptions? Any ideas where I can configure Zen to get it to autoswitch from http to https? Or is that the setting by default?

    Thanks.

  5. #5
    Join Date
    Apr 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: SSL urls work for certain links but not for others

    I changed the includes/configure.php to amend define('ENABLE_SSL', 'true'); to define('ENABLE_SSL', 'false'). As the whole purpose of my https url was to get Google checkout working for the site. This seems to be doing the trick. But now I am confused as to what exactly is the purpose of define('ENABLE_SSL', 'true'); setting? Is it to ensure that the checkout and login urls switch to https:// instead of http:// If so, there seem to be some other settings that I need to change. As simply setting the define('ENABLE_SSL', 'true'); along with the correct certificate, doesn't seem to work for urls that are not actually mapping to physical files.

    A long way for me to understand Zen, it looks like.

    Thanks.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,268
    Plugin Contributions
    3

    Default Re: SSL urls work for certain links but not for others

    Have SSL installed on your server (looks like this is done).

    In BOTH configure.php files, set SSL to true.

    That's all you need do...

    --------------------------------------------------------------

    As Kobra explained, SSL will be used by ZC ONLY when it is needed - and surely logic tells you that LOGIN is a process where sensitive data is being transmitted? Hence LOGIN will use SSL.

    Trust ZC to do what it is meant to do. You need make NO EDITS to files - other than the configure.php files. Leave everything else alone...

    (If you set it to FALSE, it will be FALSE for Google Checkout too... thus defeating the very objective you hope to achieve.)
    20 years a Zencart User

 

 

Similar Threads

  1. Add To Cart works for some products but not others!! HELP!
    By arniesbarmyarmy in forum General Questions
    Replies: 8
    Last Post: 29 Nov 2009, 11:29 PM
  2. One category not displaying products? But others work fine...
    By IllusionGuy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 6 Jul 2009, 08:34 AM
  3. attribute options for certain items, but not others?
    By JHouse in forum Setting Up Categories, Products, Attributes
    Replies: 11
    Last Post: 2 Mar 2009, 11:11 PM
  4. Free Shipping for Priority Mail but not others...
    By khopek in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Feb 2009, 05:34 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