Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19
  1. #11

    Default Re: Need Help Properly Applying SSL to Checkout

    cgolberg:
    did ajeh's post fix your problem?
    john
    http://www.ExtremaHosting.com

    Favorite Quote: "If your output exceeds your input, then your upkeep will be your downfall." (anon.)

  2. #12

    Default Re: Need Help Properly Applying SSL to Checkout

    Sure did - not sure how the line got there as it was at the bottom of the code, but it did
    Thanks!

  3. #13
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Need Help Properly Applying SSL to Checkout

    Quote Originally Posted by DrByte View Post
    I'm afraid the advice you were given earlier is misleading. The YOURDIRECTORY part should probably be in the DIR_WS_CATALOG and DIR_WS_ADMIN instead of the HTTP_SERVER ... and similarly for the HTTPS entries.

    It works like this:

    For Catalog addresses, the HTTP_SERVER and DIR_WS_CATALOG are combined to make the non-SSL URL to your site.
    And HTTPS_SERVER and DIR_WS_HTTPS_CATALOG are combined to make the SSL URL.

    For Admin addresses, the HTTP_SERVER and DIR_WS_ADMIN make the non-SSL URL and the HTTPS_SERVER and DIR_WS_HTTPS_ADMIN make the SSL URL.
    (The catalog references in the admin configure.php file operate similarly.)

    Basically, the DIR_WS_xxxxx entries would contain the common foldername where your site is stored. In most situations, this is a foldername "under" the "public_html" folder.

    If you have a shared-SSL setup, you should put the entire special shared URL in the HTTPS_SERVER line, but leave the "common" folder path in the DIR_WS_xxxxx line.

    ie:
    HTTPS_SERVER could be "https://your_site.com" and DIR_WS_CATALOG "/zencartfolder/".
    or
    HTTPS_SERVER could be "https://my_hosts_shared_server/~myusername" and DIR_WS_CATALOG would still be "/zencartfolder/" or DIR_WS_ADMIN would be "/zencartfolder/admin/"
    Dr. Byte -

    Thanks for your explanation. I have two things that have caused me to bring this back up.
    1) I am told the SSL I have is not a shared set up.
    2) I haven't implemented something quite right, because while doing general site testing I discovered that when clicking on an order confirmation link sent from my store, the page is not found due to an improper link. The same error occurred elsewhere and was related to my SSL code. What happens is that I'm getting a link in the email that is:

    Code:
    https://*****.com/catalog/catalog/index.php?main_page=account_history_info&order_id=2496
    instead of...

    Code:
    https://******.com/catalog/index.php?main_page=account_history_info&order_id=2496
    Please note that I happened to rename my entire zencart folder to /catalog which is now a funny situation for troubleshooting this. If I need to provide actual link, I will be happy to PM it.

    My code now looks like:

    Code:
     */
      define('HTTP_SERVER', 'http://******.com/catalog');
      define('HTTPS_SERVER', 'https://******.com/catalog');
      define('HTTP_CATALOG_SERVER', 'http://******.com/catalog');
      define('HTTPS_CATALOG_SERVER', 'https://******.com/catalog');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'false');
    
    // 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', '/catalog/admin/');
      define('DIR_WS_CATALOG', '/catalog/');
      define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    And

    Code:
      define('HTTP_SERVER', 'http://******.com');
      define('HTTPS_SERVER', 'https://******.com');
    
      // Use secure webserver for checkout procedure?
      define('ENABLE_SSL', 'true');
      define('DIR_WS_CATALOG', '/catalog/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', '/');

    And now if I recall, I got the same problem when I tried to make the Admin area SSL, so fixing this would be greatly appreciated. Thanks in advance!

  4. #14
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Need Help Properly Applying SSL to Checkout

    GAWD I hate that time limit.

    I posted the wrong code above, ignore that portion.

    /admin/includes code:

    Code:
     define('HTTP_SERVER', 'http://******.com');
      define('HTTPS_SERVER', 'https://******.com/catalog');
      define('HTTP_CATALOG_SERVER', 'http://******.com');
      define('HTTPS_CATALOG_SERVER', 'https://******.com/catalog');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'false');
    
    // 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', '/catalog/admin/');
      define('DIR_WS_CATALOG', '/catalog/');
      define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    /includes code

    Code:
    // Define the webserver and path parameters
      // HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
      // HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
      define('HTTP_SERVER', 'http://******.com');
      define('HTTPS_SERVER', 'https://******.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', '/catalog/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_INCLUDES', 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
    
      define('DIR_WS_PHPBB', '/');

  5. #15
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Need Help Properly Applying SSL to Checkout

    I think that I only saw one mistake or 2 get rid if the catalog at this locations
    Code:
     define('HTTP_SERVER', 'http://******.com');
      define('HTTPS_SERVER', 'https://******.com/catalog');
      define('HTTP_CATALOG_SERVER', 'http://******.com');
      define('HTTPS_CATALOG_SERVER', 'https://******.com/catalog');
    
      // Use secure webserver for catalog module and/or admin areas?
      define('ENABLE_SSL_CATALOG', 'true');
      define('ENABLE_SSL_ADMIN', 'false');
    
    // 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', '/catalog/admin/');
      define('DIR_WS_CATALOG', '/catalog/');
      define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
      define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    Zen-Venom Get Bitten

  6. #16
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Need Help Properly Applying SSL to Checkout

    That fixed the improper link in the order cofirmation page - THANK YOU.

    Working on the Secure Admin area now...

  7. #17
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Need Help Properly Applying SSL to Checkout

    NOTE: As of v1.3.x, the Admin area can only secure the "login" page via SSL unless you set the HTTP_SERVER in your "admin/includes/configure.php" to an SSL URL, in which case the entire admin area will be treated as SSL rather than only selected relevant pages. This will be changing during the admin-rewrite phase scheduled for Zen Cart v1.6.


    I'm a little confused about how to implement this paragraph in code. Is this the code we're talking about, and modification should be... ? Each time I try something, I get locked out of the Admin
    Code:
      define('HTTP_CATALOG_SERVER', 'http://*****.com');
      define('HTTPS_CATALOG_SERVER', 'https://*****.com');

  8. #18
    Join Date
    Mar 2004
    Posts
    16,042
    Plugin Contributions
    5

    Default Re: Need Help Properly Applying SSL to Checkout

    Makle this

    Code:
    define('HTTP_CATALOG_SERVER', 'http://*****.com');
      define('HTTPS_CATALOG_SERVER', 'https://*****.com');
    to

    Code:
    define('HTTP_CATALOG_SERVER', 'https://*****.com');
      define('HTTPS_CATALOG_SERVER', 'https://*****.com');
    notice the S in the top link

    this will force the entire admin to be secure,
    please note that running the entire admin in SSL may cause speed issues
    Zen cart PCI compliant Hosting

  9. #19
    Join Date
    Aug 2007
    Posts
    94
    Plugin Contributions
    0

    Default Re: Need Help Properly Applying SSL to Checkout

    Somehow I tried that but it didn't work before - perhaps I left a browser open / logged in or something - but it works now. Thanks!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v139h Gift Voucher coupon - not applying properly
    By marmi01 in forum General Questions
    Replies: 3
    Last Post: 22 Nov 2013, 04:24 AM
  2. SSL Issue with loading Checkout Page properly
    By southshorepizza in forum Basic Configuration
    Replies: 12
    Last Post: 13 Feb 2013, 11:17 AM
  3. Do I need SSL Certificate for checkout process
    By liquidkrep in forum General Questions
    Replies: 13
    Last Post: 11 Oct 2008, 02:53 AM
  4. Do I need SSL with Express Checkout?
    By nepharius in forum PayPal Express Checkout support
    Replies: 5
    Last Post: 20 Sep 2008, 03:50 PM
  5. Need Help W/ Applying Certain Shipping Methods To Certain Items While Using Flat Rate
    By SennaNight in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 1 Jun 2008, 04:52 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