Automatically Apply a Customer Tag on Registration


This is an unsupported theme customization. Please proceed with this guide at your own risk and/or contact your site developer for additional assistance.


Custom Pricing provides you with the ability to automatically apply a wholesale tag for a customer when they create an account. This ensures that they receive their wholesale pricing immediately.

This theme customization is useful if your primary customer base is wholesale clients or businesses and don't want to have to manually tag each of their accounts after registering.

Note: Your customer pricing tags should already be created before proceeding with this guide. As well, customer accounts should be enabled for your site.


To automatically add a customer tag on registration, please follow these steps:

  1. From Shopify's admin, select Online Store, then Actions, Edit code beside the theme you would like to apply this customization to.
  2. Under "Templates", select customers/register.liquid.
  3. Find:

    {% form 'create_customer' %}

    Find form create_customer code

  4. Copy and paste this code directly below that line:

    Note: This code will add the tag "Wholesale" to any customer that registers. To use a different tag, replace "Wholesale" with the tag of your choice.

    <input type="hidden" id="customer_tags" name="customer[tags]" value="Wholesale"/>

    Copy and paste code

  5. Select Save.
Was this article helpful?
0 out of 0 found this helpful