|
|
| Posted: 16 July 2008 03:30 PM |
[ Ignore ]
|
|
|
Beginner
Messages :
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!!!
|
|
|
|
|
|
| Posted: 18 July 2008 11:04 PM |
[ Ignore ]
[ # 1 ]
|
|
|
Regular
Messages :
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)
|
|
|
|
|
|
| Posted: 22 July 2008 02:11 PM |
[ Ignore ]
[ # 2 ]
|
|
|
Beginner
Messages :
Joined: 2008-07-02 |
I’m trying to do this and not solve my problem…sorry
|
|
|
|
|
|
| Posted: 22 July 2008 03:30 PM |
[ Ignore ]
[ # 3 ]
|
|
|
Regular
Messages :
Joined: 2008-07-18 |
so, what happens when you make the change? Also did you check “enable ssl” from admin panel?
|
|
|
|
|
|
| Posted: 23 July 2008 12:36 AM |
[ Ignore ]
[ # 4 ]
|
|
|
Beginner
Messages :
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
|
|
|
|
|
|
| Posted: 23 July 2008 01:59 AM |
[ Ignore ]
[ # 5 ]
|
|
|
Regular
Messages :
Joined: 2008-07-18 |
Found it, it is in “init.php” at line 96 
|
|
|
|
|
|
| Posted: 23 July 2008 11:52 PM |
[ Ignore ]
[ # 6 ]
|
|
|
Beginner
Messages :
Joined: 2008-07-02 |
SOLVED!!!! Thank you very much prip!!!!!!
|
|
|
|
|
|
| Posted: 24 July 2008 03:23 PM |
[ Ignore ]
[ # 7 ]
|
|
|
Newcomer
Messages :
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!
|
|
|
|
|
|
| Posted: 26 July 2008 01:15 PM |
[ Ignore ]
[ # 8 ]
|
|
|
Regular
Messages :
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’]” ?
|
|
|
|
|
|
| Posted: 29 July 2008 11:13 AM |
[ Ignore ]
[ # 9 ]
|
|
|
Newcomer
Messages :
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!
|
|
|
|
|
|
| Posted: 03 August 2008 11:23 AM |
[ Ignore ]
[ # 10 ]
|
|
|
Club Member
Messages :
Joined: 2007-12-01 |
Hi,
Funny that a lot of these treads are marked SOLVED while they are not.
|
|
|
|
|
|
| Posted: 20 August 2008 09:12 PM |
[ Ignore ]
[ # 11 ]
|
|
|
Beginner
Messages :
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.
|
|
|
|
|
|
| Posted: 27 August 2008 03:42 PM |
[ Ignore ]
[ # 12 ]
|
|
|
Senior Member
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
|
|
|
|
|
|
| Posted: 27 August 2008 04:35 PM |
[ Ignore ]
[ # 13 ]
|
|
|
Club Member
Messages :
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.
|
|
|
|
|
|
| Posted: 31 August 2008 06:21 PM |
[ Ignore ]
[ # 14 ]
|
|
|
Club Member
Messages :
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?
|
|
|
|
|
|
| Posted: 31 December 2008 09:24 PM |
[ Ignore ]
[ # 15 ]
|
|
|
Regular
Messages :
Joined: 2008-11-03 |
Image Attachments
Click thumbnail to see full-size image
|
|
|
|