> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/affiliate-portal-customization/toolbars/setup-shopping-cart-referred-by-widget.md).

# Setup Shopping Cart Referred By Widget

**GoAffPro** provides you with the option to set up the Shopping Cart Referred By widget. When enabled, it will let customers enter an affiliate's referral code on the shopping cart page.

{% hint style="info" %}
The shopping cart referred by widget allows customers to choose the affiliate, that referred them, on the cart page. You can set the widget to let customers choose the affiliate, by entering the affiliate's referral code, searching for the affiliate by name, or selecting the affiliate from the dropdown list.
{% endhint %}

To set up the shopping cart referred by widget, go to the **Toolbars** section in the **Look and Feel** tab of the GoAffPro admin panel.

<figure><img src="/files/VWwbaZYIO0kuvQbBHbOB" alt=""><figcaption><p>Look and Feel > Toolbars</p></figcaption></figure>

Here, go to the Shopping Cart Referred By section.

<figure><img src="/files/E3lauROYEnbNkfxRRmcB" alt=""><figcaption><p>Shopping Cart Referred By</p></figcaption></figure>

Now, enable the toggle.

<figure><img src="/files/WK3GSjSrcoNd0bHjt62I" alt=""><figcaption><p>Enable the toggle</p></figcaption></figure>

Next, click on **Customize**.

<figure><img src="/files/iVtcwNudhL5gygut5bCR" alt=""><figcaption><p>Click on Customize</p></figcaption></figure>

This will open up the Customize Cart Referral Code Input Field window.

<figure><img src="/files/3ub8xEIEmaWgVQBwaODP" alt=""><figcaption><p>Customize Cart Referral Code Input Field</p></figcaption></figure>

Here, set the input label and placeholder text.

<figure><img src="/files/ipDSAAzCIiIWm1Xw5pAm" alt=""><figcaption><p>Set the input label and input placeholder text</p></figcaption></figure>

Now, select the widget type.&#x20;

{% hint style="info" %}
You can select widget types such as Auto-Complete/Search Input, Referral Code Input, and Affiliate List Dropdown.
{% endhint %}

<figure><img src="/files/wNUi8efZ6BnwGLhVFHQm" alt=""><figcaption><p>Select the widget type</p></figcaption></figure>

After this, **copy** the tag and paste it into the cart page.

{% hint style="info" %}
You can follow this [guide](/affiliate-portal-customization/toolbars/setup-shopping-cart-referred-by-widget/referred-by-widget-in-your-cart.md) to add the code to the cart page.&#x20;
{% endhint %}

<figure><img src="/files/gfq524yOvgiqeBNZYwMP" alt=""><figcaption><p>Copy and paste the tag</p></figcaption></figure>

Finally, click on **Submit**.

<figure><img src="/files/dtyLy8mcgpCUYI3geqbi" alt=""><figcaption><p>Click on Submit</p></figcaption></figure>

The referral code input field will be displayed on the cart page of your store.

![](/files/-M0thBpX60kutlxV12rC)

{% embed url="<https://youtu.be/ecXFKaXz74M>" %}
Setup Shopping Cart Referred By Widget
{% endembed %}
