Setup Affiliate V2 in WooCommerce

Setup Affiliate V2 in WooCommerce

Introduction

In this article, you will learn how to setup Affiliate V2 to your store in WooCommerce

Here are the steps to setup Affiliate V2 in WooCommerce:

Step 1: Go to WooCommerce store >> Pages >> All pages >>Click or Add New or Edit button

Step 2: Copy the below code and paste the code. Pass dynamic data in the below HTML.

<div id="aio-affiliate-app"data-customer-id=" pass customer.id"data-customer-email="pass customer.email"data-shop-url="pass shop.permanent_domain"data-shop-name="pass shop.name"style="min-height:400px;display:none"class="aio-affiliate-block-width"></div>​<script>const affiliateAppDiv = document.getElementById("aio-affiliate-app");const script = document.createElement("script");const aioAffiliatev2Version = new Date().getTime();script.src = `https://static.aitrillion.com/aio-script/aio-affiliate-prod.js?v=${aioAffiliatev2Version}`;script.defer = true;affiliateAppDiv.appendChild(script);</script>​<style>.aio-affiliate-block-width {width: 100%;text-align: center;}.aio-affiliate-block-width .aio-app-container {width: 1200px;max-width: 100%;margin-left: auto;margin-right: auto;padding-left: 15px;padding-right: 15px;padding-top: 15px;padding-bottom:15px;display: inline-block;text-align: left;}</style>​

Step 3: Set both data-shop-url and data-shop-name to your store URL - yourstoreURL.com.
For data-customer-id and data-customer-email, pass the dynamic customer id and email.

Now, the Affiliate program will be visible to the front store


    • Related Articles

    • Setup Affiliate V2 at the Front store

      Introduction In this article, you will learn how to setup Affiliate V2 at the front store Overview?️ If App block is available on your theme If App block is not available on your theme App block is available on your theme Here are the steps to do ...
    • Setup Affiliate Commission

      Introduction: Craft a lucrative affiliate program with strategic commission structures. Dive into the essentials of setting up affiliate commissions to incentivize partners effectively, driving sales and fostering long-term collaborations. Here is a ...
    • Setup Affiliate Tracking Cookies

      Introduction: Maximize affiliate marketing effectiveness by mastering tracking cookies. Discover how to set up and manage affiliate tracking cookies to accurately attribute sales, optimize commissions, and foster successful partnerships. Please watch ...
    • Setup Affiliate Marketing Withdrawals

      Introduction: A withdrawal is a process of transferring money earned through the affiliate program to the affiliate's bank account or another payment method. Overview?️ How do affiliates request withdrawals? How did the store owner approve the ...
    • Setup Affiliate Page On The Store

      Introduction: Establish a dynamic affiliate presence on your online store. Learn how to create an engaging affiliate page that attracts partners, outlines program details, and encourages collaboration for mutual growth and success. Here is a quick 10 ...