Access to PrestaShop corporate website French English Change language
Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop job
 
Forum  >  PrestaShop v1.1  >  Security  >  Thread

Team members online:


 
Post Reply
New Topic
[Solved] SSL

offline
Posted: 16 July 2008 03:30 PM   [ Ignore ]
Beginner
Rank

Messages :

  • total: 8
  • last 7 days: 0
Joined: 2008-07-02

Hello all!!

I’ve a prestashop shop, and i want enable SSL option. My hosting allow SSL, but not only putting https.
I need put https://www.ssl-url.net/mydomain.com/…….
someone knows how to do?

Summing:

I need change: https://mydomain.com
by: https://www.ssl-url.net/mydomain.com/

Thanks a lot!!!

 
offline
Posted: 18 July 2008 11:04 PM   [ Ignore ]   [ # 1 ]
Regular
RankRankRank

Messages :

  • total: 37
  • last 7 days: 0
Joined: 2008-07-18

First of all, this type of ssl usage is more risky and is a negative point for your customers. And do NOT pay anything to this service because it has no cost for your provider. Then your questions answer is;

Go to “classes/Link.php” Line 17, you will see:

define(’PS_USE_SSL‘, (isset($useSSL) AND $useSSL AND Configuration::get(‘PS_SSL_ENABLED’)) ? ‘https://’.$_SERVER[‘SERVER_NAME’] : ‘’);

change it to:

define(’PS_USE_SSL‘, (isset($useSSL) AND $useSSL AND Configuration::get(‘PS_SSL_ENABLED’)) ? ‘https://www.ssl-url.net/’.$_SERVER[‘SERVER_NAME’] : ‘’);

(and also this is not the right forum for this question)

 
offline
Posted: 22 July 2008 02:11 PM   [ Ignore ]   [ # 2 ]
Beginner
Rank

Messages :

  • total: 8
  • last 7 days: 0
Joined: 2008-07-02

I’m trying to do this and not solve my problem…sorry

 
offline
Posted: 22 July 2008 03:30 PM   [ Ignore ]   [ # 3 ]
Regular
RankRankRank

Messages :

  • total: 37
  • last 7 days: 0
Joined: 2008-07-18

so, what happens when you make the change? Also did you check “enable ssl” from admin panel?

 
offline
Posted: 23 July 2008 12:36 AM   [ Ignore ]   [ # 4 ]
Beginner
Rank

Messages :

  • total: 8
  • last 7 days: 0
Joined: 2008-07-02

yes, enable ssl is checked, but when i buy, prestashop continues putting https://mydomain.com…. i think that the solution this in another file.Thank you very much

 
offline
Posted: 23 July 2008 01:59 AM   [ Ignore ]   [ # 5 ]
Regular
RankRankRank

Messages :

  • total: 37
  • last 7 days: 0
Joined: 2008-07-18

Found it, it is in “init.php” at line 96 smile

 
offline
Posted: 23 July 2008 11:52 PM   [ Ignore ]   [ # 6 ]
Beginner
Rank

Messages :

  • total: 8
  • last 7 days: 0
Joined: 2008-07-02

SOLVED!!!! Thank you very much prip!!!!!!

 
offline
Posted: 24 July 2008 03:23 PM   [ Ignore ]   [ # 7 ]
Newcomer
Rank

Messages :

  • total: 2
  • last 7 days: 0
Joined: 2008-07-24

Hi,
I have the same problem. i want to use a ssl-proxy.
I also found the mentioned solution in “init.php”.
But the result is a total mess with the base-url and including the stylesheet, images, etc. So i did not dig deeper in this solution.

But for you it´s working! ?
So my question is: What exactly did you change in the init.php?

Maybe my problem is, that the shop is running in a folder on my server (http://www.domain.com/prestashop) not in the root directory (for testing reasons)

Thank you very much for your help!

 
offline
Posted: 26 July 2008 01:15 PM   [ Ignore ]   [ # 8 ]
Regular
RankRankRank

Messages :

  • total: 37
  • last 7 days: 0
Joined: 2008-07-18

Did you write;

“‘https://www.ssl-url.net/’.$_SERVER[‘SERVER_NAME’]”

or

“‘https://www.ssl-url.net/prestashop/’.$_SERVER[‘SERVER_NAME’]” ?

 
offline
Posted: 29 July 2008 11:13 AM   [ Ignore ]   [ # 9 ]
Newcomer
Rank

Messages :

  • total: 2
  • last 7 days: 0
Joined: 2008-07-24

sorry for my late answer.

Here is what it is (what i think is correct):
‘base_dir_ssl’ => (Configuration::get(‘PS_SSL_ENABLED’) ? ‘https://ssl-url.net/’ : ‘http://’).htmlspecialchars($_SERVER[‘HTTP_HOST’], ENT_COMPAT, ‘UTF-8’).PS_BASE_URI,

I tried many other different ways of doing this, but the way it is creating the Base URL is different from the way it is creating Links and different from the way it is including Stylesheets and JS. I don´t get all three correct at the same time.

I also recognized that the shop is loosing its session, when it changes to the ssl-url. I get an empty cart. That´s the bigger problem i think.

I´m afraid, I have to buy my own certificate :-(

Thanks again!

 
offline
Posted: 03 August 2008 11:23 AM   [ Ignore ]   [ # 10 ]
Club Member
RankRankRankRank

Messages :

  • total: 70
  • last 7 days: 0
Joined: 2007-12-01

Hi,

Funny that a lot of these treads are marked SOLVED while they are not.

 
offline
Posted: 20 August 2008 09:12 PM   [ Ignore ]   [ # 11 ]
Beginner
Rank

Messages :

  • total: 6
  • last 7 days: 0
Joined: 2008-08-20

I am also still having trouble getting shared ssl to work. I have tried all sorts of paths in init.php and classes/Link.php. While I have caused several interesting degrees of failure, I have yet to get full success.

 
offline
Posted: 27 August 2008 03:42 PM   [ Ignore ]   [ # 12 ]
Senior Member
RankRankRankRankRank

Messages :

  • total: 165
  • last 7 days: 0
Joined: 2008-07-31

I am also getting varying degrees of success and failure but no 100% solution despite this thread being marked solved.

I tried many other different ways of doing this, but the way it is creating the Base URL is different from the way it is creating Links and different from the way it is including Stylesheets and JS. I don´t get all three correct at the same time.

I also recognized that the shop is loosing its session, when it changes to the ssl-url. I get an empty cart.

I also got this empty cart problem and links, stylesheets, my logo pointing to my Shared SSL host’s URL.
Changing links.php and init.php is only part of the solution

I conclude that Prestashop cannot handle Shared SSL without investing alot of time into hunting down all the places that need changing.

Fortunately, I don’t really need SSL as my payment gateway handles the security for me

 
offline
Posted: 27 August 2008 04:35 PM   [ Ignore ]   [ # 13 ]
Club Member
RankRankRankRank

Messages :

  • total: 70
  • last 7 days: 0
Joined: 2007-12-01

Hi,

In Holland we have consumergroups who advice not to buy with shops that don’t provide SSL during the account creation process, and entering payment and shipping info. So i don’t need it.. but the customer (thinks he) want it.

 
offline
Posted: 31 August 2008 06:21 PM   [ Ignore ]   [ # 14 ]
Club Member
RankRankRankRank

Messages :

  • total: 56
  • last 7 days: 0
Joined: 2008-08-24

hydra,

I agree, if Prestashop want to have dutch users they have to solve this problem. By the way, why implement ssl activation in the shop while it is not working?

 
offline
Posted: 31 December 2008 09:24 PM   [ Ignore ]   [ # 15 ]
Regular
RankRankRank

Messages :

  • total: 40
  • last 7 days: 0
Joined: 2008-11-03

http://www.it-gsm.ro pe curind

Image Attachments
12.jpg
 
 
 
Fast Reply
New Topic