brotherton-erpnext/erpnext/docs/user/manual/en/erpnext_integration/woocommerce_integration.md
Vinayak Jethe df83148d7c Woocommerce Integration (#13217)
* WIP for WooCommerce Integration

* WIP for WooComm Integration

* WIP WooComm

* Added Woocommerce Settings

* Woocommerce Settings

Enable Sync Makes fields mandatory

* Woocommerce whitelisted endpoints

* [Clean Up] Woocommerce Settings

* Verify Webhook Data

* Fix Verify Webhook

* WIP WooComm

* WIP and working few modules

* Customer creating partially

* Customer creation successful

* Refactored Customer code

* WIP Address

* Fixed address and customer bug. Now working fine

* WIP for products. Creation of items successful

* Handling json for product

* Products creating and updating properly

* Custom checkbox for required doctypes

* Product feature fully completed

* WIP orders

* Sales order working properly

* Orders mapping successfully

* New version Customer Working Properly

* Items creation properly

* Working on sales order

* Orders comming successfully

* Bug fixes

* Fixed date format for delivery date

* Code Cleanup

* Woo setting page modified

* Fixed minor bug

* Fixes

* Minimum Viable Product

* Cleanup

* Removed duplicate file from erpnext config

* Added more default changes to woo settings

* Fixes as per required

* Fixes

* Bug fix

* few changes and fix

* Fixing

* Fixes with test

* Added Test for Woocommerce - Emulates request

* Fix woocommerce test

* fix woocommerce test

* verify_request: py3 ready

* Codacy fixes

* WooCommerce Integration Docs

* Codacy changes

* Codacy fixes

* User set tax account

* Fixes for account

* Fix for warehouse issue

* Docs updated

* Codacy fix

* Updated Docs

* Minor changes

* Tested added for repeat order and cleanup

* Minor change

* docs and gifs renamed according to convention

* Doc updated
2018-04-03 11:17:03 +05:30

2.5 KiB

WooCommerce Integration

Setting Up WooCommerce on ERPNEXT:-

Steps:-

  1. From Awesome-bar, go to "Woocommerce Settings" doctype.

  2. From your woocommerce site, generate "API consumer key" and "API consumer secret" using Keys/Apps tab.

  3. Paste those generated "API consumer key" and "API consumer secret" into "Woocommerce Settings" doctype.

  4. In "Woocommerce Server URL" paste the url of your site where ERPNEXT is installed.

  5. Make sure "Enable Sync" is checked.

  6. Select Account type from Account Details Section.

  7. Click Save.

  8. After saving, "Secret" and "Endpoint" are generated automatically and can be seen on "Woocommerce Settings" doctype.

  9. Now from your woocommerce site, click on webhooks option and click on "Add Webhook".

  10. Give name to the webhook of your choice. Click on Status dropdown and select "Active". Select Topic as "Order Created". Copy the "Endpoint" from "Woocommerce Settings" doctype and paste it in "Delivery URL" field. Copy "Secret" from "Woocommerce Settings" doctype and paste it in "Secret" field. Keep API VERSION as it is and click on Save Webhook.

  11. Now the WooCommerce is successful setup on your system.

Woocommerce Integration

Note:- In above gif, inplace of delivery url on woocommerce website, you need to paste the url you will obtain after saving the "Woocommerce Settings" page (i.e. Endpoint from "Woocommerce Settings"). I pasted other url because I was using localhost. Please paste your endpoint in place of Delivery URL.

WooCommerce Integration Working:-

Steps:-

  1. From your Woocommerce website, register yourself as a user.

  2. Now Click on Address Details and provide the required details.

  3. For start shopping, click on Shop option and now available products can be seen.

  4. Add the desired products into cart and click on View Cart.

  5. From Cart, once you have added the desired products, you can click on proceed to checkout.

  6. All billing details and Order details can be seen now. Once you are ok with it, click on Place Order button.

  7. "Order Received" message can been seen indicating that the order is placed successfully.

  8. Now on system where ERPNEXT is installed check the following doctypes: Customer, Address, Item, Sales Order.

Woocommerce Integration