Wednesday, May 23, 2012

Setting up Magento Connector for OpenERP 6.1

1. Install Magento
2. You can get the Magento connector code from following command

bzr branch lp:magentoerpconnect 

 
3. Go to the folder magentoerpconnect and copy all the modules into addons folder of Openerp6.1. (You can just copy module magentoerpconnrect as its the module we install in openerp


4. From
http://apps.openerp.com  download the following modules:
  1. base_external_referentials
  2. base_onchange_player
  3. base_sale_multichannels
  4. product_images_olbs
  5. product_links
  6. product_m2mca
  7. tegories
  8. sale_exceptions
5.Create a new databse in Openerp 6.1 and install module magentoerpconnect.  
 
6. After installing magentoerpconnect module you see the menu MAGENTOERPCONNECT:
   Now go to  MAGENTOERPCONNECT >> Core Settings >> Magneto Instances. Create a new Instance.


You might get the following error:
"Invalid Api Path" at the time of importing products in Openerp:
7. To solve this do the following changes:

Download the followng code:
 bzr branch lp:magentoerpconnect/magento-module-trunk 

 
* Rename /opt/lampp/htdocs/magento/app/etc/modules/Openlabs_OpenERPConnector.xml file to Openlabs_OpenERPConnector_6.0.xml


8. After completing the download of this branch go to the folder and copy the file
  ~/magento-module-trunk/Openlabs_OpenERPConnector-1.1.0/app/etc/modules/Openlabs_OpenERPConnector.xml into/opt/lampp/htdocs/magento/app/etc/modules


9,  Rename the folder /opt/lampp/htdocs/magento/app/code/community/Openlabs to Openlabs_6.0

10,  Now Copy the folder ~/magento-module-trunk/Openlabs_OpenERPConnector-1.1.0/Openlabsinto  /opt/lampp/htdocs/magento/app/code/community/

11 Rename the file /opt/lampp/htdocs/magento/var/package/tmp/package.xml  to package_6.0.xml And finally copy the file~/magento-module-trunk/package.xml into /opt/lampp/htdocs/magento/var/package/tmp

12. Now try to import the products, all the products will be imported successfully.
 

13. AFTER DOING THE ABOVE CHANGES YOU MIGHT GET THE ERROR WHILE IMPORTING SALES ORDER: “Resource path is not callable

14, To avoid this : Open your magento in browser and login by admin.

 Then go to System >> Cache Management and Click on Flush Magento Cache and Flush Cache Storage.


15. Thats it you should now have a working Magento Connector Enjoy!!! 


No comments:

Post a Comment