# Referred By Widget Integration

#### To integrate the shopping cart referred by widget in your store theme:&#x20;

Go to the Online Store section in the Shopify admin panel.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FxrikcBtnDM4bmP0jGJvt%2FScreenshot%202024-09-23%201334341.png?alt=media&#x26;token=4035c408-fd9f-40f7-bffe-467c86888c61" alt=""><figcaption><p>Shopify admin panel > Online Store</p></figcaption></figure>

Here, go to the Themes section and click on **Customize**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FY0eyfJ6LgqL4YEhrMyb0%2FScreenshot%202024-09-23%20133453f.png?alt=media&#x26;token=cd8cd4f4-a265-4df6-ad3e-f394711e2aa7" alt=""><figcaption><p>Themes > Click on Customize</p></figcaption></figure>

Now, go to the Home page > Select the Cart option.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FtrhqE6AZvXBnmAGR2lLH%2FScreenshot%202024-09-23%201335263.png?alt=media&#x26;token=f50953d9-a50b-4421-ad23-5414a299628d" alt=""><figcaption><p>Home page > Cart option</p></figcaption></figure>

Next, click on **Add section**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fg5DJWepKWqpfAzSzossl%2FScreenshot%202025-07-08%20215847.png?alt=media&#x26;token=1e33daef-1a93-4e23-a4de-34338ff08f18" alt=""><figcaption><p>Click on Add section</p></figcaption></figure>

After this, select the **Custom Liquid** option.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fq2DNqDfMtAjVvZUA77Ca%2FScreenshot%202025-07-08%20215920.png?alt=media&#x26;token=67a74829-3e6b-49fa-ac81-612d7cbc0e28" alt=""><figcaption><p>Select the Custom Liquid option</p></figcaption></figure>

Now, open the Custom Liquid section.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FMLszJTQD7SLx9MLQiatN%2FScreenshot%202025-07-08%20220033.png?alt=media&#x26;token=b49761ce-a32a-4ff5-931d-4ebc3d61fbba" alt=""><figcaption><p>Open the Custom Liquid section</p></figcaption></figure>

Copy the following code from Look and Feel > Toolbars > Shopping Cart Referred By section:

```html
<div class="gfp_ref_input"></div>
```

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FLjaqp99YbWOnuwPnjKMC%2FScreenshot%202025-07-08%20220117.png?alt=media&#x26;token=6a2cacce-96e6-478b-88ee-5b4a59aaae1b" alt=""><figcaption><p>Copy the tag</p></figcaption></figure>

Next, paste the code into the Custom Liquid box.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FENeh9dFtEtlUXA01iu0L%2FScreenshot%202025-07-08%20220140.png?alt=media&#x26;token=dc069b67-a2b7-41f9-86bc-13d789710c2d" alt=""><figcaption><p>Paste the code into the custom liquid box</p></figcaption></figure>

Finally, click on **Save**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FKJX49WyTM13tMqL2hBeA%2FScreenshot%202025-07-08%20220256.png?alt=media&#x26;token=8318b504-26b9-45e5-b30c-9dcc4959a2c0" alt=""><figcaption><p>Click on Save</p></figcaption></figure>

The referred by widget will be displayed on the cart page of your store.&#x20;

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FFslptam6uKGmuItVygj6%2FScreenshot%202025-07-08%20222018.png?alt=media&#x26;token=6dd5c008-b12b-49e2-a3af-1a67ff832325" alt=""><figcaption><p>The referred by widget will be displayed</p></figcaption></figure>

#### The Shopping Cart Referred by widget has three input types:

You can go to Look and Feel > Toolbars > Shopping Cart Referred By and click on **Customize**. Here, you can choose how to display the referred-by widget input.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fw1oaIYCBX0JWJlipiA6Y%2FScreenshot%202025-07-08%202201137.png?alt=media&#x26;token=9b37abed-930d-4bc8-bf7d-cff07e7a6473" alt=""><figcaption></figcaption></figure>

**Auto-Complete/Search Input:** Customers can enter an affiliate's name to search for them.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FdViK45FC6RyioWx5nn2Z%2FScreenshot%202025-07-08%20222726.png?alt=media&#x26;token=ab4d6803-4889-475d-837a-11303b0cd6f2" alt=""><figcaption><p>Auto-Complete/Search Input</p></figcaption></figure>

**Affiliate List Dropdown:** A dropdown list will appear, allowing customers to select an affiliate.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F7a3JmGRmGl1ZqXhJgEWf%2FScreenshot%202025-07-08%20222227.png?alt=media&#x26;token=d042a98b-719e-4a6c-aa0c-bd273ba14573" alt=""><figcaption></figcaption></figure>

**Referral Code Input:** The customer can enter the affiliate's referral code, which is the unique code found at the end of the affiliate's referral link.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FNd0FakCI3s91j1EOomPL%2FScreenshot%202025-07-08%20222426.png?alt=media&#x26;token=ff11ddc4-5549-4e96-b680-3eb079070f70" alt=""><figcaption></figcaption></figure>

<details>

<summary>Advanced Customization</summary>

If you want to customize the widget to meet your needs, the widget script requires only an input field with the id **gfp\_refcode\_input** for it to function properly.

Instead of adding the code as shown in the custom integration, you can add the following code as well:

```markup
<div>
<label>Referred By</label>
<input type="text" id="gfp_refcode_input" /> 
</div>
```

In effect any piece of code with:&#x20;

```markup
<input type="text" id="gfp_refcode_input" /> 
```

It will be sufficient for the widget to function properly.

</details>

{% embed url="<https://youtu.be/hfWHbbil2ps>" %}
Referred By Widget Integration
{% endembed %}
