> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/samita-wholesale-b2b/registration-form/automatically-add-wholesale-tag-to-shopify-customer-account.md).

# Automatically add “wholesale” tag to Shopify customer account

This page shows two ways to automatically add a tag — for example **wholesale** — to a customer's Shopify account after they submit your Registration Form, so you can easily filter and manage them later.

{% hint style="info" %}
Before using either approach, make sure your form is already connected to Shopify customer data. See [Integrate Registration Form with Shopify customer data](/samita-wholesale-b2b/registration-form/integrate-registration-form-with-shopify-customer-data.md).
{% endhint %}

{% tabs %}
{% tab title="Approach 1: Tag on approval" %}

1. From the app, click **Registration form**, open the form you want to edit, then click **Settings > General**.
2. In **Add tag when customer is approved**, enter the tag you want to add — for example, `wholesale`.

<figure><img src="/files/zZ92QdugFFZ6IUNE1XUB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/xGwc9Bo8qtobjjgO3i9L" alt=""><figcaption></figcaption></figure>

3. Click **Save**.
   {% endtab %}

{% tab title="Approach 2: Hidden field" %}

1. From the app, click **Registration form**, then open the form you want to edit.
2. In the **Elements** tab, click **Add element** and add a **Hidden** field to your form.

<figure><img src="/files/PgIzIrv1LzFElORZqBNr" alt=""><figcaption></figcaption></figure>

3. In the **Hidden** element, set **Data type** to **Fixed value**, then enter `wholesale` in the **Assign value** field.

<figure><img src="/files/qjbcmtXH8FWx1MShfBfL" alt=""><figcaption></figcaption></figure>

4. In the **Integration** tab, click **Shopify**, find the **Hidden** field, and assign it to the **tags\[]** attribute.

<figure><img src="/files/PAKKFXKR9t4IaHvbBzJa" alt=""><figcaption></figcaption></figure>

5. Click **Save**.
   {% endtab %}
   {% endtabs %}

{% hint style="success" %}
**Result:** after a customer submits the form, their customer account is created and automatically assigned the **wholesale** tag.
{% endhint %}

<figure><img src="/files/zXIahnmN8ojUeUGi6BTT" alt=""><figcaption></figcaption></figure>

> ### **Need support?**
>
> If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://help.samita.io/support@samita.io)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/samita-wholesale-b2b/registration-form/automatically-add-wholesale-tag-to-shopify-customer-account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
