* 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
2.5 KiB
WooCommerce Integration
Setting Up WooCommerce on ERPNEXT:-
Steps:-
-
From Awesome-bar, go to "Woocommerce Settings" doctype.
-
From your woocommerce site, generate "API consumer key" and "API consumer secret" using Keys/Apps tab.
-
Paste those generated "API consumer key" and "API consumer secret" into "Woocommerce Settings" doctype.
-
In "Woocommerce Server URL" paste the url of your site where ERPNEXT is installed.
-
Make sure "Enable Sync" is checked.
-
Select Account type from Account Details Section.
-
Click Save.
-
After saving, "Secret" and "Endpoint" are generated automatically and can be seen on "Woocommerce Settings" doctype.
-
Now from your woocommerce site, click on webhooks option and click on "Add Webhook".
-
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.
-
Now the WooCommerce is successful setup on your system.
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:-
-
From your Woocommerce website, register yourself as a user.
-
Now Click on Address Details and provide the required details.
-
For start shopping, click on Shop option and now available products can be seen.
-
Add the desired products into cart and click on View Cart.
-
From Cart, once you have added the desired products, you can click on proceed to checkout.
-
All billing details and Order details can be seen now. Once you are ok with it, click on Place Order button.
-
"Order Received" message can been seen indicating that the order is placed successfully.
-
Now on system where ERPNEXT is installed check the following doctypes: Customer, Address, Item, Sales Order.