+2 votes
1.5k views
in Wordpress by
I have a wordpress integrated magento site. Magento is the frontend store where wordpress is the site cms pages and product reviews. I need to integrate the functionality of auto logging in to both magento and wp whenever someone is logging into magento. How is this possible? I assume I will need to create user accounts happening on magento on wp also and keep it synced always. WP will not have a independent user register functionality, so it will not need a back sync of accounts. Please suggest how this can be done?

1 Answer

0 votes
by

I have not had tried an actual sync solution between WP and Magento, but there are some plugins and solutions by which will allow you to run a WP site over magento sessions.

Mage Enabler. This is a WP plugin that gives raw access to the Mage object - you can use it like single login and even access Magento methods within WordPress (pull templates from Magento, display categories, products and checkout from your blog etc etc and much more).

There is also a Fishpig plugin for this purpose. See http://fishpig.co.uk/magento/wordpress-integration/customer-synchronisation/
While I have not used this plugin on any project yet.

Other solutions to consider below...

http://www.anowave.com/marketplace/magento-extensions/magento-wordpress-single-login/

https://premium.wpmudev.org/blog/single-sign-on-now-available-for-wordpress-and-magento/

Or you can ever build a bespoke solution

Just check, if a customer session is returned through mage, and check for WP sessions also. If WP session is not set then the user is not logged in. Create the WP user with a common password and inject the login. You can start this from here.

http://phponlinesupport.com/68/code-check-customer-logged-magento

Related questions

+1 vote
1 answer 1.4k views
asked Oct 14, 2016 in Wordpress by Justin
0 votes
1 answer 2.0k views
0 votes
0 answers 838 views
asked Dec 6, 2016 in Laravel by Jinu
+2 votes
2 answers 9.1k views
0 votes
1 answer 1.0k views
asked Aug 25, 2016 in Wordpress by Sita
...