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.

    select online store

  2. Select Actions.

    Select Actionsg

  3. Select Edit code.

    Select Edit code

  4. Under "Templates", select customers/register.liquid.

    select customers/register.liquid

  5. Find:

    {% form 'create_customer' %}

    find this line of code

  6. 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 this code

  7. Select Save.

    select save

Helpful Links:

1 out of 1 found this helpful



Please sign in to leave a comment.