who needs social life when you have broadband?

Inventas vitam iuvat excoluisse per artes / Let us improve life through science and art.

Magento and Joomla! - HowTo!

Here's a short text explaining how to get Magento and Joomla! user integration using a plugin I wrote for JFusion.

UPDATE 2: There is a brand new version of this plugin (much simplier and should work with magento 1.0), please fallow the development process here and help me testing!! FEEDBACK IS APPRECIATED!

UPDATE: Magento plugin is, now, packed with JFusion versions higher than 1.0.5. You just need to install JFusion and enable Magento plugin. Cheers :D

Before we start:
This is not a user synchronization method. It validades all users (except backend users) against your Magento database. That's how JFusion 1.0.4 works so if you want user synchronization between Joomla! and Magento you'll have to wait for next releases of JFusion (we are working on this feature!).

What you will need:
- Joomla! 1.5.0+ installed and configured (1.5.1 strongly recommended)
- JFusion 1.0.4 installed and configured! (jfusion has plenty of documentation on how to get it working. please use it!)
- Magento eCommerce 0.7.1548 installed and configured (I can't say if this works with the latest version!! I promise I will release an up to date plugin as soon as Magento 1.0 stable goes public)
- My Magento Plugin for JFusion! (yay!)
- cURL extension for PHP (check your phpinfo(); if its not enabled, I'm almost sure there is a php5-curl package for your favorite linux distro, or a commented dll in your php.ini)

Once Joomla!, JFusion and Magento are running smoothly, extract my plugin (magento.tar.gz) inside JFusion's admin folder (yousite/administrator/components/com_jfusion/). This will create a yousite/administrator/components/com_jfusion/magento/ folder with two files in it: admin_forum.php and jfusion.xml

Missing information (thanks unleash.it):

add the new files to the com_jfusion.xml:

HTML:
  1. <filename>magento/admin_forum.php</filename>
  2. <filename>magento/jfusion.xml</filename>

Then manually add a new row for Magento in the jfusion table of the Joomla DB. You can do this simply copying one of the existing (forum) rows and change the name to "magento".

Now login in your joomla backend (using the "admin" username), go to components -> jfusion and configure your "magento" plugin.. that's it.

you should be able to login in joomla with your Magento users (the username is a e-mail address) and link to your magento site without need to restart the session :P

Warning:
This is a pre-alpha public release (magento plugin hasn't been released with jfusion yet). Use for testing purposes only and let me know if it worked as expected :)

Submit your comments here, here or by mail: bigodines ~@ ~ joomla.com.br

14 Comments so far

  1. Jason March 11th, 2008 4:13 pm

    Has your patch been updated with the latest version of Magento. Currently on your site you use version 0.7.1548, and from what I can tell the latest verion as of 3/11/2008 is 0.8.17240.

    Thanks for your effort into this project.

  2. Dan Knauss March 20th, 2008 1:39 pm

    Do you (or does anyone else) have this set up in a public demo site?

  3. bigodines March 20th, 2008 1:56 pm

    I’m working on a new version of the plugin. SHould be available with Magento 1.0 final.

    I will provide a demo site as well. Thanks for your patience.

  4. Tim Burkart March 22nd, 2008 6:11 pm

    I’m confused… I installed the latest version of both JFusion (1.05e Alpha) and Magento (0.9.17740). All of the files and config are in place as you have detailed however I do not see a Magento plugin (in Joomla 1.5.1) that I can enable for JFusion configuration.

    Do you have any advice for me?

    Thanks!

  5. bigodines March 22nd, 2008 7:05 pm

    Tim, I didn’t get your comment.

    The magento plugin is a JFusion plugin is already there. just go to integration config and configure the magento plugin.

    Please note:
    - Dual login won’t in the latest version of magento (will work if you use 0.7.1548)
    - Table preffix won’t work (as older versions of magento didn’t use preffix).

    I’ll provide a new version of this plugin with Magento final (which should occur by the end of this month).

    -bigo

  6. Yaz Okulu March 23rd, 2008 8:36 pm

    does anyone knows if there is any other information about this subject in other languages?

  7. Duncan Babbage March 29th, 2008 6:26 am

    I am interested in trying to integrate both CiviCRM and Magento into a Joomla (or possibly Drupal) site. Wondering what effect this JFusion approach to the Joomla-Magento integration would have on the CiviCRM-Joomla integration… Any ideas?

  8. bigodines March 29th, 2008 9:06 am

    civicrmc-joomla should be easy as well… check the jfusion community. There’s proably someone working on it.

    -bigo

  9. Duncan Babbage March 29th, 2008 5:07 pm

    Hi Bigo,
    Actually, CiviCRM is designed to work as a Joomla component, so jfusion is not needed on that side. Rather, my question is, do you know if using jfusion to link to Magento could screw up the CiviCRM component in some way, if it means that some data is not being stored in the Joomla database when that is where CiviCRM expects to find it?

  10. Saleem April 2nd, 2008 7:55 pm

    Hi all,
    I’ve configured as said, but my jfusion status says “No user table found”.
    Any idea y?

  11. Saleem April 2nd, 2008 8:47 pm

    hi..
    well i figured out the “No user table found”.. my bad.. i didnt add clients login details to magento..
    now the 2nd issue am having.
    Everything is configure and status says good, but when am trying to login from joomla, it says username and password fails. but when i try to register, it opens magento in a wrapper.

    I’ve setup magento on http://www.badurally.com/magento/
    and the joomla integration is on http://www.badurally.com/magoomla/

    username: joomla@badurally.com
    password: magento

    or
    username: test@test.com
    password: magento

    Any advice….
    Thx..

  12. bigodines April 2nd, 2008 9:47 pm

    guys, thanks for testing.

    please check more recents posts in this blog with information about running Magento 1.0 and Joomla!.

  13. west coast life insurance company April 25th, 2008 4:29 am

    I really, truly am glad I found this site. It has answered so many questions for me. I will be back. Thank You

  14. Tom May 15th, 2008 7:46 pm

    Any updates as to whether or not this integration is working as it should ??

Leave a reply