Learn how to integrate WooCommerce with Google Sheets using Pabbly Connect to store order details in different rows based on products. Step-by-step tutorial included. Learn to create powerful connections between your critical applications without requiring specialized programming knowledge or extensive technical background.

Watch Step By Step Video Tutorial Below


1. Accessing Pabbly Connect for Integration

To integrate WooCommerce with Google Sheets, we will use Pabbly Connect. Start by visiting the Pabbly Connect website. If you are a new user, click on ‘Sign Up for Free’ to create an account. Existing users can directly sign in.

Once logged in, you will find the dashboard where you can manage your workflows. Click on ‘Create Workflow’ to initiate the process. Name your workflow appropriately, such as ‘Store Order Details in Different Rows Based on Products’. This sets the stage for the integration process.


2. Setting Up WooCommerce as the Trigger in Pabbly Connect

In this step, we will set WooCommerce as the trigger application in Pabbly Connect. Select ‘WooCommerce’ from the list of applications. For the trigger event, choose ‘New Order’ to ensure that the workflow activates whenever a new order is placed.

  • Select ‘WooCommerce’ as the trigger application.
  • Choose ‘New Order’ as the trigger event.
  • Copy the provided webhook URL to connect WooCommerce with Pabbly Connect.

After copying the webhook URL, navigate to your WooCommerce settings in your WordPress dashboard. Go to WooCommerce > Settings > Advanced, and then select ‘Webhooks’. Click on ‘Add Webhook’ and fill in the necessary details, including the webhook name and the copied URL. Set the status to active and choose ‘Order Created’ as the topic.


3. Capturing Order Details from WooCommerce

With the webhook set up, it’s time to capture the order details. After placing a test order in WooCommerce, return to Pabbly Connect and click on ‘Recapture Webhook Response’. This allows you to fetch the latest order details.

Ensure that the ‘Simple Response’ option is toggled off, as this will allow you to receive all product details in a single response format. Once the response is captured, you will see all relevant order details, including product names, quantities, and customer information.

  • Toggle off ‘Simple Response’ to get advanced format.
  • Click on ‘Recapture Webhook Response’ to fetch order details.
  • Verify that you receive a comprehensive response containing all product details.

After capturing the response, you can see that the connection between WooCommerce and Pabbly Connect is successful, and the details are ready for the next step.


4. Using Iterator to Process Order Details for Google Sheets

Next, we will utilize the Iterator function in Pabbly Connect to process the captured order details. This step is crucial as it allows us to split the order details into separate rows in Google Sheets based on each product.

Select ‘Iterator’ as the action application and choose the action event as ‘Process Array’. Map the line items from the previous step to ensure that each product’s details are processed individually.

Select ‘Iterator’ as the action application. Choose ‘Process Array’ as the action event. Map the line items to ensure individual processing.

By using the Iterator, you will receive responses for each product separately, which will be essential for adding them to Google Sheets in different rows. This setup ensures that the order details are organized and easy to read in your spreadsheet.


5. Adding Order Details to Google Sheets via Pabbly Connect

Finally, we will connect Google Sheets to Pabbly Connect to store the order details. Select ‘Google Sheets’ as the action application and choose ‘Add New Row’ as the action event. This will allow each product’s details to be added to a new row in your Google Sheets.

Connect your Google Sheets account if you haven’t done so already. Once connected, select the spreadsheet and sheet where you want the order details to be stored. Map each field with the corresponding data from the previous steps, ensuring that all relevant information is included.

Select ‘Google Sheets’ as the action application. Choose ‘Add New Row’ as the action event. Map the fields to ensure all order details are captured.

After mapping the fields, click on ‘Save and Send Test Request’. This will add the details to your Google Sheets, confirming that the integration is successful. Now, whenever a new order is placed in WooCommerce, the details will automatically populate in Google Sheets in separate rows based on each product.


Conclusion

In this tutorial, we demonstrated how to integrate WooCommerce with Google Sheets using Pabbly Connect. By automating the process, you can easily store order details in different rows based on products, enhancing your workflow efficiency. This integration provides a seamless way to manage your e-commerce orders.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.