Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to install SSL on OSC


fotogaaf

Recommended Posts

Hi all,

 

still active members i hope!

 

My shop: http://www.fotogaaf.eu/schoolfotograaf-nederland-aanbieding-betaalbaar-prijs-actie-goedkoop/catalog/  ( now ofcource https)

I have an old oscommerce webshop, which still works, BUT my clients demand SSL.

Learning Woocommerce, but for the time being i need this OScommerce shop!

Read 


edit my files to

  define('HTTP_SERVER', 'https://www.fotogaaf.eu');
  define('HTTPS_SERVER', 'https://www.fotogaaf.eu');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');
  define('HTTPS_COOKIE_DOMAIN', '');

 

But can't figre out what ia, doing wrong: i get an error when (On SSL) from cart to fill in name etc i want to go to shipping: i get an error to log in ?!

Used to work without https........

Is a modified shop and the creator cannot be reached anymore.

 

Anybody ??

 

 

 

 

Link to comment
Share on other sites

@ArtcoInc 

Thanks for your effort!!!!!
Much appreciated

1) I realized ( after a night of sleep) that i configured  both http as https allowed; changed that to ONLY https: works !!!!
2) for the customer it works....for me as admin 2 things don't work ( see attached screenshot)

a) styling in admin is gone

b) sales last 30 days is gone

Any ideas how to fix this ?  

webshop.jpg

Link to comment
Share on other sites

@Heatherbell

Thank you for your reply.

You think my setting for COOKIE_DOMAIN is wrong ??

Phoenix is a no go for me, because  heavily modified shop.

admin/includes/configure.php:

  define('HTTP_SERVER', 'https://www.fotogaaf.eu');
  define('HTTPS_SERVER', 'https://www.fotogaaf.eu');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', '');

 

Catalog/includes/configure.php:

  define('HTTP_SERVER', 'https://www.fotogaaf.eu');
  define('HTTPS_SERVER', 'https://www.fotogaaf.eu');
  define('ENABLE_SSL', true);
  define('HTTP_COOKIE_DOMAIN', 'www.fotogaaf.eu');

 

Link to comment
Share on other sites

I can't see anything too difficult that would not be able to be handled by Phoenix in your shop. (sorry complex sentence)

The only thing I see is that customers need to enter their foto-nummer at the moment of ordering.

I have not created an account and/or checked out, but I can't imagine that this is só complex it can't be handled by Phoenix.

Also: your admin name is admin. Better no and much better not post this on a public forum.

Second one in two days..... 🙂

On second thought: login username / see your foto's might be something nasty, but there's allways a developer who can handle this.

 

Link to comment
Share on other sites

The installed configure.php files use const instead of define. Which is correct ?
Do I need to add the "define('ENABLE_SSL', true);" to a new install of 1.0.7.14 ?
If the install showed a green thumbs up against SSL, should it add the enable line to config ?

  const HTTP_SERVER = 'https://abcd.com';
  const COOKIE_OPTIONS = [
    'lifetime' => 0,
    'domain' => 'abcd.com',
    'path' => '/shop2/',
    'samesite' => 'Lax',
    'secure' => true,
  ];

Link to comment
Share on other sites

3 hours ago, Nige-A said:

Do I need to add the "define('ENABLE_SSL', true);" to a new install of 1.0.7.14 ?

No.  1.0.7.14 will ignore it entirely. 

3 hours ago, Nige-A said:

The installed configure.php files use const instead of define. Which is correct ?

While there are reasons to prefer const, it doesn't make a functional difference. 

Always back up before making changes.

Link to comment
Share on other sites

Thanks Matt.
This is all part of me getting the Pending status email sent.
My hosts are suggesting using smtp instead of sendmail. Just waiting for their next reply before I try it.
Any other ramifications if I do use the SMTP email setting ?

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...