Articles on: External Integrations

Integrating Wix webstore with Pluvo

Would you like to connect Pluvo with your Wix webshop so that students are automatically linked to your e-learning after a purchase? Follow the steps below:

Note:
For a multi-step Zap, you need a paid Zapier account. You can get one starting from around €20/month and try it for free.
To use a Wix Webshop, you need a Business Basic subscription with Wix. More information can be found here.
Ensure you have our Team or Company subscription.

1. Preparation in Wix



You need to go through a few preparatory steps in Wix before starting the integration. While in Wix ADI, access the editor through the tab on the right side of the page:

Wix Editor

Now, enable the Corvid advanced editor in the Wix editor. Click on 'Dev Mode' and then on 'Enable Dev Mode': https://editor.wix.com/html/editor/

Corvid Advanced Editor

You are now ready to create your automation!

2. Wix Automation



Step 1. Go to the Automations Dashboard and create a new automation:

Choose Invoices as the trigger, selecting '**Invoice is paid**' as the trigger condition.

Invoices as Trigger

Step 2. Select the action: Connect with Zapier. Save and finish.

Connect with Zapier

To generate invoices automatically, indicate this in your shop settings. You can do this via the Store Settings tab

Store Settings

Once done, it's time to move to Zapier.

3. Configuration in Zapier



Open Zapier and create a new zap. Start by setting up the trigger from Wix, named Wix Automations. In the 'Customize Automation' step, choose the Wix automation rule you created earlier.

Wix Automations

In the 'Find data' section, you'll receive example data from Wix. You can't effectively test this because the fields aren't populated with real data but with dummy text. However, following the steps in this article should work correctly.

Tip: Adding an extra step
It's smart to add an extra action now before connecting Zapier with Pluvo. This action is called 'lowercase email'. It ensures that the email address a user fills in is always in lowercase. This way, it doesn't matter how a user writes their email; it will always be consistent.

Click on the plus sign to add a new action and search for 'formatter by Zapier'. Then fill in the following:
Under 'Event', enter 'text' and proceed to 'set up action'.
Select 'Lowercase' for Transform.
In the Input field, choose the user's email address (Contact.email[0]) from Wix.

4. Connecting with Pluvo and Adding Users



Step 1: Proceed to the next 'do this'. Select Pluvo here.
Step 2: Choose 'search or create user' under 'choose action event'. An account must be created or found before linking this person to the e-learning. Select 'Continue'.

Pluvo User Search

Step 3: Connect your Pluvo account with Zapier under 'Choose account'. Authorize Zapier to access your Pluvo account.
Step 4: Go to 'Set up action' (previously called Customize User). The next step will ask for a User Reference. This is a unique ID for the user. Here, select 'Contact.email[0]' from the Zapier formatter.

Pluvo Setup Action

Step 5: Check 'Create Pluvo user if it doesn't exist yet'.
Step 6: Select the fields corresponding to the user's name under name. Make sure there's a space between the first and last name fields.
Step 7: Choose 'Contact.email[0]' again for Email.
Step 8: Set 'true' for active.
Step 9: Choose 'true' for invite if you want students to receive an email invitation to your academy. This is recommended.
Step 10: Click on 'Continue'.

Note: You can't test the zap because the test data from Wix doesn't contain an email address, preventing the creation of a user in Pluvo. Skip testing.

5. Handling Wix Purchases for Better Processing



This step is a bit complex. Wix purchases cannot automatically go through in Zapier. We need to address this intelligently. In the new step below your recently created Zap, choose the app 'Code by Zapier' and then select 'Run Javascript'.

Code by Zapier

In the next step, we'll arrange the items in a list and add some code. Don't be intimidated by the code below; if you copy it as it is, everything will work fine:

For each item, we create a row with the name Item1 (through Item10) in the first field and link it with the Wix item in the second field. Refer to the image below.
Paste the code block below into the Code section:

const elearningsProducts = Object.keys(inputData).map((key) => {  
      // Remove price from item  
      return inputData[key].trim().split(' ').slice(0, -1).join(' ');  
    });  
      
    output = { elearningsProducts };




Now, click on 'Continue' to test this step. If the code is placed correctly, the test will display the following results.

Test Results

This step is now completed. We've successfully listed the names of the purchased products from the shop in an organized list, which will allow us to use this information to place the buyer in the appropriate e-learning course within Pluvo.

6. Add User to E-learning



After creating the user, you'll need to add the user to your e-learning courses.

Add User to E-learning

Step 1: Click on the plus sign under the zap you just created.
Step 2: Select Pluvo again under 'choose app'.
Step 3: Under Choose action event, select 'add user to e-learning'.
Step 4: Again, select the correct Pluvo account as in step 10.
Step 5: For User Reference, choose the User Reference provided by Pluvo.
Step 6: For e-learning reference, select Elearning Products from the 'Run javascript' step. This step iterates through all purchases made by the user in Wix. So, if this person has bought 3 e-learnings, we'll link this person to these 3 e-learnings as well.
Step 8: 'Send invite' is set to true by default. The user receives an email with a training invitation. If you want them to receive only an email from the academy (if you selected true in the 'find or create user' step), then select false.
Step 9: Done

7. Make Product Names Known in Pluvo



Now, the content we receive in Elearning Products must match what we've entered in the 'external reference' field in the course within Pluvo. This way, Pluvo knows which e-learning course is linked to which product.

For example, your product in Wix is e-learning title; then, fill in the same information in the external reference field within Pluvo.

NOTE: If you've provided a SKU for your products in Wix, it will also be included in your e-learning products in Zapier. Therefore, include the SKU in the external reference in Pluvo in the following format:

Product Name (SKU:001)

WIX product details:

Wix Product Details

Product code is the SKU of a product in WIX:

Wix Product SKU

Course in Pluvo with external reference field:




Step 2: Done! Enable the zap, and you're ready to sell

If you want to automatically set the user as inactive after a certain period, check out how to do this in the item about Woocommerce. This works the same way for Wix purchases.

Updated on: 13/06/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!