Many times there is readable stuff that we want to sell/share with our customers but, most of us don’t know how to send file automatically on every purchase. So, here is a simple step by step guide to sending Google Drive file whenever a sell happens on WooCommerce store.

We are going to integrate WooCommerce with Google Drive using Pabbly Connect to send files on every purchase automatically. This service allows integrating any two or more service and shares data within the connected services in real-time.

How to Send Google Drive File on Every WooCommerce Purchase

In this blog, we’ll simply learn to set up a trigger on the WooCommerce checkout action and its respective action on Google Drive to send a file.

Moreover, Pabbly Connect allows using instant triggers, routers, filters and formatters to design unlimited workflows. Well, it also allows you to use many advanced options such as multi-step calls, integration with unlimited premium apps etc. And all this without writing a single line of code or help from a professional.

Why Choose This Method Of Integration?

In contrast with other integration services-

  • Pabbly Connect does not charge you for its in-built apps like filters, Iterator, Router, Data transformer and more
  • Create “Unlimited Workflows” and smoothly define multiple tasks for each action
  • As compared to other services which offer 750 tasks at $24.99, Pabbly Connect proffers 50000 tasks in the starter plan of $29 itself
  • Unlike Zapier, there’s no restriction on features. Get access to advanced features even in the basic plan
  • Try before you buy! Before spending your money, you can actually signup & try out the working of Pabbly Connect for FREE

Sign Up To Pabbly Connect  

In a few minutes interval, it allows you to send Google Drive files on every new WooCommerce purchase. So, save your time and access all Pabbly Connect features without any restriction even in its free plan.

Now, let’s move forwards with the step by step procedure to integrate WooCommerce with Google Drive and automatically send files on WooCommerce sales.

How to Send Google Drive File on Every WooCommerce Purchase (step by step)

Step 1: Sign up to Pabbly Connect

Sign UpGo to the official website of Pabbly Connect and then click on the ‘Sign-Up Free‘ button. On the registration page, either signup using an existing Gmail account or manually fill out the form to get into the system.

Try Pabbly Connect for FREE

Step 2: Access Pabbly Connect

Select Connect

After signing up successfully, click the ‘Access Now’ button of the software ‘Connect’ Pabbly application.

Step 3: Workflow for WooCommerce with Google Drive Integration

(a) Start with a New Workflow

Create New Workflow

Start with creating a workflow to send Google Drive files automatically to the WooCommerce customers and to do this strike the ‘Create New Workflow’ button.

(b) Name the Workflow

Create Workflow WooCommerce to Google Drive

Now, name the workflow as per your need (for instance: WooCommerce to Google Drive etc) and push the ‘Save’ button.

Step 4: Setting Trigger for WooCommerce – Google Drive Integration

To automatically send Google Drive file to WooCommerce customers whenever a sale happens, you need to set-up a trigger on checkout and its respective action to send the file on Google Drive. So, let’s get started with setting up the trigger first.

(a) Select Application you want to integrate

Integrate WooCommerce

When you hit the save button to create a workflow, a trigger window will open next.

You’ll need to select the ‘WooCommerce’ option from the ‘Choose App’ field drop-down options.

(b) Select the WooCommerce Method

WooCommerce Method

Next, select the ‘New Order Created’ from the ‘Choose Method’ field’s drop-down options.

(c) Copy the Webhook URL

Copy Webhook URL

Further, copy the ‘Webhook URL’ by clicking the ‘Copy’ button on this page.

Til now, we are half-way done with the WooCommerce to Google Drive trigger settings. And now, we’ll need to paste this URL on our WP WooCommerce plugin settings to get the trigger working.

Step 5: Connecting WooCommerce to Pabbly Connect

Sign-in your WordPress site and go to the backend dashboard.

(a) Go to Your WordPress WooCommerce Settings

WooCommerce Settings

If you have the WooCommerce plugin enabled for your site then click on the ‘WooCommerce’ option available in the left-vertical dashboard menu. And then click the ‘Settings’ option on the secondary menu that become visible after clicking ‘WooCommerce’.

Else, if you don’t have the WooCommerce plugin enabled for your website then install it and do enable it first. And then do follow the above-explained steps.

(b) Click on the Advanced Settings Option

WooCommerce Advanced Settings

Next, you will see a page carrying all the WooCommerce general settings. Click on the ‘Advanced’ option on the page’s menu.

(c) Click on Webhooks

Click on Webhooks

Further, another page will open up carrying another menu below the setting’s menu. Click on the ‘Webhook’ option.

(d) Click on ‘Add Webhook’ Button

Click Add Webhook

The page carrying all the webhooks created so far will open up.

Push the ‘Add webhook’ button present next to the ‘Webhooks’ head.

(e) Fill the Webhook Data Box Entries

Woocommerce Webhook Settings

A page will open up carrying the Webhook data box.

Fill in the name that you wanna give to your Webhook.

Change the value of the ‘Status’ field to be ‘Active’ by selecting the same option from its field drop-down.

Next, select the ‘Topic’ field value to be ‘Order Created’ from the field’s drop-down menu.

(f) Paste the Delivery URL

Paste the Webhook URL

Paste the copied Pabbly Connect Webhook URL in the ‘Delivery URL’ field.

And lastly, save the Webhook settings by clicking the ‘Save Webhook’ button.

Step 6: Test the Trigger Response in Pabbly Connect Dashboard

As we can see we are done setting up the trigger to send order data when a new order is placed in WooCommerce. So, let’s just test the trigger by making a test order on WooCommerce.

(a) Capture Webhook Response

Capture Webhook Response

To test the trigger, first, hit the ‘Capture Webhook Response’ button on the Pabbly Connect trigger window.

(b) Go to Your WooCommerce Checkout Page

Place Order

Open any checkout page and place an order. Just fill all the mandatory details and hit the ‘Place Order’ button to capture the response.

(c) Check the Trigger Response

Trigger Response

You can see the response of your created trigger below the Webhook Response.

The response will start showing the details of a recent WooCommerce order.

Step 7: Setting Action for WooCommerce – Google Drive Integration

As we can see the response that we got of the set trigger is as expected and now we can move forward towards taking an action on the received data from WooCommerce.

(a) Select Application You Want to Integrate

Integrate Google Drive

To start sending Google Drive files on every WooCommerce purchase, click the plus button next to your recently created trigger window.

Then select the ‘Google Drive’ app to integrate from the ‘Choose App’ field’s drop-down menu.

(b) Connect with Google Drive

Connect with Google Drive

Next, check the method in here to be ‘Share a File’ and then click ‘Connect with Google Drive’ button.

(c) Authorize your Google Drive Account

Authorize Google Account

In the next window that slides in from the right, click ‘Connect’ & authorize your Google account.

(d) Map the Response to the Invoice

Map Values

This is a significant step & you can map the values that you got from the WooCommerce response to the Google Drive action details. The mapped values will be responsible for the automatic action afterwards.

To map a value, place your cursor to the position on which you wanna map the value.

Click the menu button (or three vertical lines) next to that particular field.

Lastly, click select the value that you want to map.

(e) Save & Send Test Request

Save & Send Test Request

After mapping the email address, select a role for the customer and then click on ‘Save & Send Test Request’.

(f) Check the API Response

Action API Response

You can acknowledge the success of your set action on the ‘API Response’.

(g) Check the Google Drive File in the Test Order’s Account

Google Drive File Sent

Also, you can check the Goggle Drive file in the test customer’s email inbox.

Step 8: Save the Workflow

(a) Save the Action API’s Response

Save Action API's Response

(b) Save the Workflow

Save Webhook

As we can see the Webhook is working perfectly. So, simply save the webhook by clicking the save button in the trigger window.

Wind-Up

Well, this is all about ‘How to send Google Drive file on every WooCommerce purchase’. Consequently, after completing the step by step procedure, you will end up sending Google Drive file on every WooCommerce store product purchase. Most importantly, the procedure is very easy to implement and you don’t need any coding knowledge to follow the steps.

You can always try Pabbly Connect for FREE.

For any further questions, do comment below. We’ll get back to you ASAP.

You May Also Like to Read: