Hotwax Systems Blog | Company News, Events, and Tutorials

How to Setup OFBiz Connect for Magento | HotWax Systems

Written by HotWax Systems | Apr 14, 2015

OFBIZ Tutorial- Setup OFBiz Connect for Magento: Apache OFBiz is an excellent fulfillment platform, not only for orders placed on native OFBiz e-commerce stores, but also from external e-commerce stores like Magento and other platforms. Yesterday, HotWax Systems released OFBiz Connect, an open source plugin that easily links Magento with the robust ERP management functionality of OFBiz. This OFBiz tutorial focuses on how to set up OFBiz Connect for Magento.

Prerequisites:

  • An Apache OFBiz instance running 13.07 or later (for more details refer to: OFBiz Home)
  • A  Community or Enterprise edition Magento instance (for more details please refer to Magento Installation)
  • OFBiz Connect should be placed in the OFBiz “specialpurpose” directory
Follow these steps to setup OFBiz Connect for Magento
  1. Link OFBiz with Magento
  2. Create SOAP users and roles in Magento
  3. Setup WS-I Compliance Related Settings
  4. Configure OFBiz

1. Two Options for Linking OFBiz Connect with Magento

There are two way to link OFBiz Connect with Magento:

  1. Download the OFBizConnect source code available at https://github.com/hotwaxlabs/OFBizConnect.git
    a. Copy OFBizConnect/app/code/community/OFBiz folder into your Magento installation directory app/code/community/
    b. Copy OFBizConnect/app/etc/modules/OFBiz_Magentoext.xml into your Magento installation directory app/etc/modules/
    OR
  2. Upload the plugin to the Magento instance
    a. Use the plugin attached to OFBIZ jira ticket OFBIZ-6236.
    b. Follow the steps to upload the plugin on Magento
    — Sign in to your Magento store admin panel.
    – Navigate to System > Magento Connect > Magento Connect Manager.
    – Upload plugin file(OFBiz_Connect-1.0.0.tgz) from ‘Direct package file upload’ section of page.
    – Return to admin panel
    – Flush Magento cache by clicking on ‘Flush Magento Cache’ button on system -> cache management page

2. Create a user and a user role in Magento for OFBiz webservices

Note: This user and user role will be used by OFBiz integration services to establish the connection with Magento.  To create  a user and a user role, follow these steps:

A) Create a Role

1. Login into the Magento admin application and go to the dashboard screen (http://magentohost/admin/)

2. Go to System => Web Services => SOAP/XML-RPC – Roles

3. Click the “Add New Role” button

4. Fill in the “Role Name” and save the role

5. Go to  the “Role Resources” tab, under the “Role Information” section. Select “All” from the “Resource Access” drop-down and save by clicking the “Save Role” button

B) Create a User

1. Go to System => Web Services => Soap/XML-RPC – Users

2. Click on  the”Add New User” button and fill in the form details


3. Go to the “User Role” tab, under  the “User Information” section and select the role you created during steps outlined above and click on the “Save User” button

3. Setup WS-I Compliance Related Settings

1. Login into the Magento admin application and go to the dashboard screen (http://magentohost/admin/)

2. Go to System => Configuration => Services => Magento Core API and set ‘WS-I Compliance’ and ‘Enable WSDL Cache’ fields to Yes

4. Configure OFBiz

You are now ready to configure OFBiz in order to access Magento webservices.

1. Check out the Magento component from github: https://github.com/hotwaxlabs/magento.git  and put it in the hot-deploy folder of OFBiz

2. Load seed, seed-initial and ext data readers of the Magento component. Please run the command as: ./ant load-readers -Ddata-readers=seed,seed-initial,ext

3. Go to the configuration screen https://ofbizhost/magento/control/main and login

Enter the url of the Magento instance and the username/password of the SOAP user created in Magento.

4. After submitting the configuration page, you will see the following screen. Click on the Import button to get settings and information from the Magento instance and auto populate it into OFBiz.

5. Finally you will see a screen displaying all of the imported information. Follow any instructions that are displayed. The setup should now be complete. For more information, please feel free to contact us.

Photo credit: opensourceway / Foter / CC BY-SA