# Automatically add “wholesale” tag to Shopify customer account

We created this article for the purpose of showing you how to add the form data to the **tag** field of Customer data. Simply, this function allows you to automatically add tag “**wholesale”** to Shopify customer detail after the Samita Registration form is submitted.

Then you can easily manage customers with tag “**wholesale**“.&#x20;

Firstly, please make sure the form data is connect with Shopify customer data. [**Help doc!**](https://help.samita.io/docs/samita-wholesale-pricing/customer-management/integrate-registration-form-with-shopify-customer-data/)

### Approach 1

**Steps to manage**&#x20;

1. From the app admin page, click **Registration form** > open the form you want to edit&#x20;
2. Click **Settings** > **General**&#x20;
3. In the field **Add tag when customer is approved**, enter the tag you want to add to customer detail. For example: *wholesale*
4. Click **Save**

<figure><img src="/files/50UfPulC1hgpIEH2YU9S" alt=""><figcaption></figcaption></figure>

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

### **Approach 2**

**Steps to manage**&#x20;

&#x20;1\. From the app admin page, click **Registration form** > open the form you want to edit&#x20;

&#x20;2\. In **Elements** tab, click **Add element** > add a **Hidden** field to your form

<figure><img src="/files/4GNWMWD6kMZ9O1BfM9iR" alt=""><figcaption></figcaption></figure>

&#x20;3\. In the **Hidden** element, select **Data type**: **Fixed value** >  in the **Assign value** fiel&#x64;**,** enter “**wholesale"**

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

&#x20;4\. Move to the **Integration** tab of the form > **Shopify** > find the field **Hidden** and assign attribute **tags\[]** &#x20;

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

&#x20;5\. Click **Save**&#x20;

{% hint style="success" %}
**Result**

After a customer submits Samita Registration form, customer account is created and automatically assigned **wholesale** tag.&#x20;
{% endhint %}

<figure><img src="/files/ZJCYviOcBpPsDHoeh1ZN" 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
