Marco's PrestaShop 1.5 & 1.6 Authentication for Joomla

Prestashop to Joomla bridgeThis Joomla! plugin allows to customers of a PrestaShop™ e-commerce to access to a Joomla! site without a new registration.

Joomla! is an excellent cms, but is not comparable to PrestaShop in the pure e-commerce use; here a smart  authentication bridge between the two worlds.

A plugin for PrestaShop and Joomla integration

Prestashop to Joomla bridgeThis plugin allows to use an existent PrestaShop e-commerce to authenticate its users on a Joomla installation.

It works exactly like the Joomla! Gmail Autentication plugin, and integrates PrestaShop with Joomla!.
This extension is also published on http://extensions.joomla.org, if you like, it vote it or write a review, thank you. 

Features

  • PrestaShop 1.5 and 1.6 and Joomla Integration
  • plugin works on J2.5 and J3.x sites;
  • no need of double registration;
  • allows you to use PrestaShop for the e-commerce and Joomla! for the CMS;

 
 

Prestashop Configuration

Access the back end of your PrestaShop ecommerce, choose the "Webservice" item under the "Advanced Parameters" menu and then select "Yes" for the "Enable PrestaShop's webservice".

Now you need to create a new key for connectint to the server; see: http://doc.prestashop.com/display/PS15/Webservice+one-page+documentation for detailed instructions.

Please create a web service with the minimal privileges: you have to enable only the GET method for the customers resource

Last step recover the cookie key for password encryption. Open he file configuration/settings.inc.php in the Prestashop installation, locate the line with:

define('_COOKIE_KEY_', 'VeRy_lOnG_ANd_StrAnGE_StRInG');

Copy the VeRy_lOnG_ANd_StrAnGE_StRInG in the Prestashop cookie key parameter of the plugin configuration

This plugin doesn't support direct Db access. It's too dangerous to keep both the encryption key and the db credentials together. If someones hacks your Joomla! installation can also register himself as a prestashop's administrator. If you use the web service there is no way to hack PrestaShop from here.

 

 

the joomla logoJoomla Plugin Configuration

Simply download the plugin, install it and activate it:

  • URL of shop:
    Url of the PrestaShop installation, with the protocol and without the trailing slash. Like in: http://www.mypsshop.com
  • WS Authorization Key:
    Authorization Key needed to access the PrestaShop web services
  • Prestashop cookie key:
    The _COOKIE_KEY_ value from the file configuration/settings.inc.php in the Prestashop installation

 

Note: Prestashop SEF URL must be enabled to use web services.

 

Download J2.5 and J3.x version for PrestaShop 1.5 & 1.6

This extension is also published on http://extensions.joomla.org, if you like, it vote it or write a review, thank you.

Note: PrestaShop 1.6 is supported till version 1.6.0.6 only, because PrestaShop's team did not release the new web service library.

 

Commenti   

0 #20 Carlos 2016-07-01 15:54
Citazione Carlos:
Hi Marco, as the PS WebService Lib is now compatible till 1.6.1.5, is this plugin compatible with that version and Joomla 3.5.1 ? Thanks. See github.com/.../...


It seems to work with new library, thanks :)
Citazione
0 #19 Carlos 2016-06-27 13:19
Hi Marco, as the PS WebService Lib is now compatible till 1.6.1.5, is this plugin compatible with that version and Joomla 3.5.1 ? Thanks. See github.com/.../...
Citazione
0 #18 Duyrat 2015-11-28 19:06
I try to installe your plugin but it doen't work. Under prestashop it's ok but not with joomla. Can you help me?

Cordially
Citazione
0 #17 martin morales 2015-04-09 22:12
Hi marco,i'm testing the plugin, but after all the config and settings are done, how can i test it?? and it works on PS 1.6.014??
===Answer
Hi martin,

I think you did not read the note on my site:

Note: PrestaShop 1.6 is supported till version 1.6.0.6 only, because PrestaShop's team did not release the new web service library.

anyway, at present time, prestashop's library works only for 1.6.0.11
you can try to use raw.githubusercontent.com/.../ ...
changing the psCompatibleVer sionsMax constant.

bye,
marco
Citazione
0 #16 Loic 2015-03-03 21:08
Hello,
Firstable thanks for the plugin.
I installed your plugin on the last version of joomla and I am using the last version of Prestashop.
unfortunatelly, I have an "Other error on PrestaShop host (enable debug)".
I mentioned in the plugin conf page the 3 fields and activated debug mode. I also enabled SEF URL.
However, I am not able to see any output of the error; there is no change when the debug mode is activated or not. Where could I find it?
Regards

====Answer
Hi Loic,

latest prestashop version is not supported by the latest API library for prestashop (github.com/.../...). try to force compatibility or wait for a new version.

ps: unfortunately, in a case like this, the only available debug is a php's debug :(

good luck,
marco
Citazione
0 #15 Francisco 2015-02-03 23:00
I still can bypass users prestashop to joomla using your plugin configure it and nothing happens maybe it's for permissions problem on the api key but I can not login with users prestashop to joomla and vice versa excuse me for not write in English but do not know English will translate with google
_________________________
no puedo puentear los usuarios de prestashop con joomla utilizando tu plugin lo configure y no pasa nada talvez sea por problema de permisos en la llave api pero no logro ingresar con usuarios de prestashop a joomla ni viceversa disculpame por no escribirte en ingles pero no sé ingles lo traducire con google

===Answer
"I still can bypass users prestashop to joomla ..."
sorry, but, really, I can't understand what it means: it does not make sense. search for an english speaking friend...
anyway, if you don't speak english, how can you read and understand the instructions supplied on this page?
Citazione
+1 #14 Francisco 2015-01-27 21:18
sigo sin poder puentear los usuarios de prestashop con joomla ya utilice tu plugin lo configure y no pasa nada talvez sea por problema de permisos en la llave pero no logro ingresar con usuarios de prestashop a joomla ni viceversa disculpa que no te escriba en ingles pero nose ese idioma lo traducire con google
______________________________________
I still can bypass users prestashop to joomla and use your plugin configure it and nothing happens maybe it's for permissions problem on the key but I can not login with users prestashop to joomla or contrary apology that you do not write in English but not that language will translate with google

===Answer
Hi Francisco,
sorry, but I can't understand the translated text.
an example: you write 'disculpa que no te escriba en ingles' and google translate as 'apology that you do not write in English', but, because I'm Italian, I understood you wrote 'apology if I do not write in English'! anyway I'm not able to speak Spanish so I need you write in English.
Citazione
0 #13 Vince Bodie 2014-11-26 21:56
Hi Marco,

I am getting this error when trying to log into Joomla 3.3.6 using Prestashop 1.6.0.9 login info:

Failed to authenticate: Other error on PrestaShop host (enable debug)

I have enabled debug in your plugin. I searched PS admin for 'debug' and it showed these two options, which I both set to 'Yes':

Disable non PrestaShop modules
Disable all overrides

I enabled debug in Joomla but it made no difference.

I also swapped out the PSWebSer viceLibrary.php file as you suggested above.

What else can I try?

===Answer
Hi Vincie,
'Other error on PrestaShop host' is an unknown error not strictly related to authentication.
you should enable debug only for the plugin and joomla then read carefully the output: here you will find details about the problem.

if you see an error code like status code 5xx you can check prestashop.

can you see the debug output fron plugin?

bye,
marco
Citazione
0 #12 Gabriele 2014-10-17 10:13
Ciao Marco, stiamo installando sul nostro sito in joomla 3.3.6 il tuo ottimo plugin. Abbiamo installato prestashop 1.6.0.9 e aggiornato anche il PSWebServiceLib rary.php. Le key sono a posto, però quando ci registriamo su prestashop di qui (su joomla) non arriva nessun messaggio. Se proviamo a usare user e password di prestashop in joomla non dà errore, ma dice: Non puoi accedere all'area privata del sito.
È un problema della release di joomla o di prestashop? O dobbiamo settare il webservice in qualche modo particolare? Tieni conto che i 2 siti sono in costruzione e che non li abbiamo ancora "fatti vedere" agli utenti. Grazie per il tuo lavoro. Ciao.

====Risposta
ciao Gabriele,
non so di che messaggio tu stia parlando, il plugin serve solo per verificare che un utente sia registrato su PS ed abilitarlo su joomla.
Il plugin non è stato testato con nessuna delle versioni citate, visto che mi sono stufato di correre dietro a ps, comunque attiva il debug per verificare la risposta del sistema.
le impostazioni sono quelle descritte sul sito, ricorda che in ps il sef deve essere attivo perché funzioni il routing del web service

ciao,
marco
Citazione
0 #11 Chris 2014-10-03 06:54
Hello Marco,

I see that the plugin doesn't work on PS 1.6.0.6 and upwards.
Do you have idea when it will have that functionality?

===Answer
Hi Chris,
a library for 1.6.0.9 was released a few day ago.
You can download it from
github.com/.../...
and replace the file in the 'assets' directory (\plugins\authe ntication\marco prestashopauth\ assets\PSWebSer viceLibrary.php )

But it seems that prestashop's team has stopped working with future in mind, and I'm not going to follow them in every single little step...

bye,
marco
Citazione

Aggiungi commento

Please note: URL in text are not linked and user's site address is only for internal use and is not published.

Comments are human checked. All spam will be removed, so don't waste your time and, especially, mine!

Codice di sicurezza
Aggiorna