Using SSL to create a secure store (v. 2.94+) (v. 2.94+) (v. 2.94+)

If you want your web site and cart to use the secure https:// prefix (often with the little lock next to it), you will need to do the following:

  1. Purchase and set up a secure certificate.

    This needs to be done outside the script, and is often done through your web host. We cannot help set up a secure certificate or troubleshoot the setup.

  2. Set all the secure entries in the config file.

    • define('SB_SECURE_SITE', true); // this tells the system to use https:// for all of the site links, instead of http://
    • define('SB_SECURE_ADMIN', true); // this means you will have to log in to the storeadmin area with https://yoursite/storeadmin/
    • define('SB_SECURE_CART', true); // this uses https:// links for the Mals cart.
  3. Set up Mals to use SSL.

    If you don't set up Mals to use SSL, orders may not come through properly.

    • Cart setup -> Customize -> Other messages -> Secure page for name and address -> Check the box to use SSL for those pages

    • Cart setup -> Customize -> Header, font, alignment -> Secure page title -> Specify a title here

    • Cart setup -> Customize -> Return link -> Your website address -> Select HTTPS

    • Cart setup -> Advanced Settings -> Remote call -> Select HTTPS POST

  4. Check your merchant account

    If you are using a merchant account to capture credit cards, make sure any links back to your site use SSL. For instance, if you use PayPal with auto return, make sure your return URL shows https:

    Profile > Profile and settings > My selling tools > Selling online > Website preferences > Update > Return URL should use https:// before the URL.

  5. Check all links

    Go through any hard coded URLs - specifically in your templates and in any Mals headers/footers, and make sure you use https:// instead of http:// for all of them.

  6. Optional: set up a SSL redirect

    In releases before 2.95, if you want to always redirect your insecure site to a secure one, you can use the following modification:

    Force Redirect SSL