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.
Setup
To automatically add a customer tag on registration, please follow these steps:
- From Shopify's admin, select Online Store, then ... > Edit code beside the theme you would like to apply this customization to.
- Under Templates, select customers/register.liquid.
-
Find:
{% form 'create_customer' %}
-
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"/>
- Select Save.