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 #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
0 #10 arman 2014-10-03 00:18
hi

for store i like to use prestashop and for article use joomla

1- if i integrate with your plugin can i use rsmembership or something like that for making plan in joomla ?
2- i want to follow abandon cart with acysms that is for joomla,
is there any way ?
3- can i customize user registeration and request mobile number ?
4- will you customize it for me , and what is the fee and cost , please contact me by email .

regards

===Answer
Hi Arman,
I don't think It's a good idea to sell joomla subscription with prestashop: better if you use only a joomla extension.
May be you need a more complex extension to manage your project, anyway.

marco
Citazione
0 #9 garima 2014-08-07 12:24
Hi Marco,

I am using joomla version 3.2.3 and we cannpt able to single login in both joomla and Prestashop.

Please help!

Thanks
Garima

===Answer:
Hi Garima,
you can log into joomla with a prestashop existing account, once you have configured both prestashop webservice and joomla plugin.
which prestashop version are you using? (is it supported?)

bye,
marco
Citazione
0 #8 Vangelis 2014-07-02 15:38
Hello Marco.
Just one question to clarify before my attempt to bridge presta & joomla.
What I need is to have a prestashop webshop but use joomla to build custom cms menu of this prestashop. So the prestashop will be the main platform and joomla will be used for enriching webshop's platform.
Is this plugin appropriate for this use?
Regards,
Vangelis

===Answer
Hi,
I think it's ok.
bye,
marco
Citazione
0 #7 Guido 2014-06-15 17:59
Ciao Marco, vorrei porti una domanda in merito al modulo in oggetto. Sono riuscito a far autenticare gli utenti che si erano registrati in prestashop da joomla, ma quando provo il contrario non avviene. Il tuo modulo, è unidirezionale? Ossia, gli utenti che si sono già registrati in joomla, si possono loggare in prestashop con le stesse credenziali?
Grazie comunque del tuo lavoro.

==== Risposta
ciao Guido,
al momento il plugin funziona solo nel modo indicato e come sei riuscito ad usarlo.
per autenticare in PS gli utenti di joomla servirebbe un modulo per PS. tieni comunque presente che così come sono, gli utenti joomla non possono essere usati per PS (ad esempio PS richiede nome e cognome separati).
Citazione
0 #6 Tom 2014-04-16 08:39
Hi Marco,
Thanks for this, but it doesn't seem to work for me.
What username should they use when trying to login to joomla? Do they use their email address, like with prestashop?
Also, does it work for PS1.6?
Regards,
Tom.

=== Answer
v1.00 it is only for PS1.5, new version is coming...
bye,
marco
Citazione
0 #5 Guest 2014-04-08 07:58
im using joomla version 3.2.3. it keeps prompting Failed to authenticate: Other error on PrestaShop host (enable debug)
where did i went wrong? and also prestashop im using the latest version and i Enable CGI mode for PHP

====Answer
Hi,
'Other error on PrestaShop host' means server error on no connection.
which version of prestashop are you using? this plugin is for PS v1.5.
for PS1.6 is coming...

ps: no mail, no answer

bye,
marco
Citazione
0 #4 Guest 2014-03-10 11:43
Hi Marco,

I download and test it in J2.5 et P1.4, but nothing.

I enable the web service, create the key, copy the cookie key...

But the authentificatio n in J! failed...

===Answer
Hi thomas
it for PS1.5 only, not tested in PS1.4.
I suppose the problem is the cookie key and the way to encode the pw used in PS1.4, but I have not PS1.4 for testing, sorry.

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

L'estate si avvicina hai già trovato l'albergo per le vacanze? cerca un albergo al mare o un hotel in montagna ove trascorrere le tue vacanze.