Skip to content

Free alternative to Zapier-WooCommerce integration. This Google App Script saves the new WooCommerce orders in a general spreadsheet (the one where the script is applied), as well as in separated spreadsheets, one for each different order´s type. All of that in REAL TIME!

License

angeligareta/woocommerce-to-google-sheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WooCommerce ↔️ GoogleSheets

Free alternative to Zapier-WooCommerce integration

License

Free alternative to Zapier-WooCommerce integration. This Google App Script stores the newest WooCommerce orders in a general spreadsheet (the one where the script is applied), as well as in separated spreadsheets, one for each different order´s type.

For example, if you have two types of orders: Shirt and Jeans. It will create a spreadsheet with all the data of the people that ordered a Shirt and another for everyone that ordered Jeans. Besides, there will be a general Spreadsheet with all the orders together.

And there is more, these spreadsheets will be updated each hour or in real-time! Do you want to implement it? Piece of cake! Just follow two steps:

Installation

Create Spreadsheet

Create a spreadsheet in Google Sheets, where you want the general spreadsheet (where all the order will be mixed). Here, you must add one row of data with the following titles:

First Name | Last Name | Email | Notes | Order status | Order

From within the new spreadsheet, select the menu item Tools > Script editor. If you are presented with a welcome screen, click Blank Project. Delete any code in the script editor and paste the code that you can find in googleAppsScript.js in it. However, you must fill WEBSITE, CK, CS and ACTIVITY_FOLDER_ID with the correct values.

Once you have done that, you can go to the menu item Execute -> Execute Function -> syncOrders. And magic! The general spreadsheet and the activities one will be filled and created.

Auto Triggering

If you want to trigger syncOrders automatically, in the Script editor go to the menu item Edit -> Current Projects Trigger. Add one, with the function syncOrders and the source time, selecting the respective frequency.

Trigger in Realtime

There is an option to trigger it each time that a new order is created. Follow this steps:

  1. Go to script editor menu -> Publish -> Implement as a WebAPP -> Execute app as me and anyone can access. When you click update, copy the url showed.
  2. Go to WooCommerce -> Settings -> Advanced -> WebHooks and Create titled as "UpdateGoogleSheets", for instance. Now select the topic ordered created, status active and paste the url in the url field.

About

Free alternative to Zapier-WooCommerce integration. This Google App Script saves the new WooCommerce orders in a general spreadsheet (the one where the script is applied), as well as in separated spreadsheets, one for each different order´s type. All of that in REAL TIME!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published