Make a selection

Automatically Apply a Customer Tag on Registration

  • Updated

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

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

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




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

  1. From Shopify's admin, select Online Store, then ... > 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 adds 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.