Woo2Test is a tool designed to extract data from your WooCommerce store and directly import it into Google Sheets. Skip the extra costs and the limitations of third-party tools like Zapier or specialized WooCommerce plugins. With Woo2Test, you gain full control over your data at no additional cost.
If you encounter any issues or have questions, feel free to contact [email protected].
If Woo2Test has made your life easier by automating your WooCommerce to Google Sheets workflow, consider supporting its ongoing development. A tool like this takes time and effort to maintain and improve.
Would you like to say thanks in a tangible way? Why not buy me a coffee or a beer? Your generous support would not only fuel me with caffeine or a hoppy delight but also provide the necessary encouragement to keep this project running and free for everyone.
Click the link below to contribute. Cheers!
๐
Buy me a coffee or a beer
Thank you for using Woo2Test!
Woo2Test is capable of extracting the following types of data:
- Orders
- Line Items (Orders)
- Customers
- Categories
- Products
The tool also has the capability to regularly update the Google Sheet with new information from your WooCommerce store.
This tool is licensed under the GNU General Public License v3 (GPL-3).
There are two options for using Woo2Test:
Use the Woo2Test instance deployed by me ([email protected]). This is the simplest option, but note that the service cannot be guaranteed, and you won't be able to execute your own code.
- Import Woo2Test as a library using the ID:
1n-kjtsY2j3Lzh4vCbeEWwnmARoBDtIiMZbH0ediyZkRgNVfCHEBMxxv4
. - Setup your Google Sheet.
- Clone the code and create your own Google App Script project.
- Deploy the code as a library and copy the ID.
- Import Woo2Test as a library using the newly generated ID.
- Setup your Google Sheet.
- Create your Google Sheet File.
- Open App Script and paste the given code.
- Add
appscript.json
(navigate to settings and enable the "Show App Script" option). - Set up the
CONFIG
object with the relevant information like your spreadsheet ID and the API keys you generated in WooCommerce.
The following is a sample Google App Script code snippet to set up the CONFIG
object and Google Sheet menu.
javascriptCopy code
function onOpen() {
SpreadsheetApp.getUi()
.createMenu("WOO2SHEET")
.addSubMenu(SpreadsheetApp.getUi().createMenu("Run Once")
.addItem("Orders", "runOrders")
.addItem("Products", "runProducts")
.addItem("Categories", "runCategories")
.addItem("Customers", "runCustomers"))
.addSubMenu(SpreadsheetApp.getUi().createMenu("Automatic Data collection")
.addItem("Start", "runStartTriggers")
.addItem("Stop", "runStopTriggers"))
.addToUi();
}
var CONFIG = {
// The sheetID, you can find it in the Sheet file URL
SHEET_ID: "1111",
// The consumer key and secret. The best advice is to create an specific key
// Grant read permissions only
// https://yourdomain.com/wp-admin/admin.php?page=wc-settings&tab=advanced§ion=keys
CONSUMER_KEY: "yyyy",
CONSUMER_SECRET: "xxxx",
// Your domain
DOMAIN: "yoursite.com",
// It is not needed to change these settings, unless you know what you are doing
ITEMS_PER_PAGE: 15,
MAX_PAGES: 2,
};
function run_orders() {
Woo2Sheet.extractAndLoad_orders(CONFIG)
}
function run_products() {
Woo2Sheet.extractAndLoad_orders(CONFIG)
}
function run_categories() {
Woo2Sheet.extractAndLoad_orders(CONFIG)
}
function run_customers() {
Woo2Sheet.extractAndLoad_orders(CONFIG)
}
function run_startTriggers() {
Woo2Sheet.createTriggers()
}
function run_stopTriggers() {
Woo2Sheet.deleteTriggers()
}
Add this to the appscript.json file, so that the permissions are managed properly.
"oauthScopes": [
"https://www.googleapis.com/auth/spreadsheets",
"https://www.googleapis.com/auth/script.projects",
"https://www.googleapis.com/auth/script.external_request",
"https://www.googleapis.com/auth/script.scriptapp"
]