Marco's PrestaShop 1.5 & 1.6 Authentication for Joomla
This 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
This 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.
Joomla 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
It seems to work with new library, thanks :)
Cordially
===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
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
_________________________
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?
______________________________________
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.
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
È 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
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
RSS feed dei commenti di questo post.