Jump to content
fotogaaf

How to install SSL on OSC

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 ??

 

 

 

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
4 minutes ago, fotogaaf said:

Any ideas how to fix this ?  

Check your admin/includes/configure.php is correct.
Recommend you start your new shop with Phoenix - see my signature for download.

Share this post


Link to post
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');

 

Share this post


Link to post
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.

 

Edited by René H4

Share this post


Link to post
Share on other sites

@René H4

Thanks for you mentioning my stupidity!

I made a new adminaccount deleted the admin account mentioned in the screenshot!

Its modified when handeling the orders and that developer doesn't respond anymore.

Share this post


Link to post
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,
  ];

Share this post


Link to post
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.

Share this post


Link to post
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 ?

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×