On this page
Feature Usage:
By default, all variants of a products appear to all customers. However, We can write custom script in the theme files to fulfill the following requirements:
- Hide specific variants of a product from the specific customer group
- Show specific variants of a product to the specific customer group
Hide/Show variant Example:
A product has 3 color variants 'Small', 'Medium' and 'Large', and by default these color variants are visible to all customers.
You can show or hide the specific variant to specific customers by adding tag to the product.
a) Hide product variant from the specific customer group
You can hide any variant of a product from specific customers by adding a tag to the product. Let's say you want to hide the 'Large' variant from the 'wholesale' tagged customers then you just simply need to add a tag to the product.
Prepare a tag to hide variant:
Product Tag format: hide_{{customer.tag}}_{{variant.id}}
- {{customer.tag}} => replace with customer tag from where you want to hide the variant.
- {{variant.id}} => replace with variant id that you want to hide.
Product tag example: hide_wholesale_32925484843043
You can pick the variant id from the product page to prepare the product tag.
Add tag 'hide_wholesale_32925484843043' to the product as shown in this screenshot:
After adding 'hide_wholesale_32925484843043' tag to the product.
- The 'wholesale 'tagged customers wouldn't see the 'Large' variant on the product page, and they will see only 'Small' and 'Medium' variants, see this screenshot as reference.
- However, all other customers who don't have 'wholesale' tag assigned will see all the three variants 'Small', 'Medium', and 'Large'.
b) Show product variant to the specific customer group
You can show a variant of a product to specific customers only by adding a tag to the product, and all other customers wouldn't see that variant. Let's say you want to show the 'Large' variant to only 'wholesale' tagged customers but all those customers who don't have 'wholesale' tag assigned wouldn't see the 'Large' variant, You just simply need to add a tag to the product.
Prepare a tag to show variant:
Product Tag format: show_{{customer.tag}}_{{variant.id}}
- {{customer.tag}} => replace with customer tag to show the variant.
- {{variant.id}} => replace with variant id that you want to show.
Product tag example: show_wholesale_32925484843043
You can pick the variant id from the product page to prepare the product tag.
Add tag 'show_wholesale_32925484843043' to the product, after that
- The 'wholesale 'tagged customers will see all the three variants 'Small', 'Medium' and 'Large'.
- All those customers who don't have 'wholesale' tag assigned will see only two variants 'Small' and 'Medium' but not the 'Large' variant.
Note, We can write custom script to fulfill any type of requirements related to hide or show specific variant to the specific customer groups.
One Time Set up fee
There is one time setup fee to write custom script to hide or show specific product variants to the specific custom groups. CLICK HERE to contact us.
Got a question? Please write an email, Contact US
Comments
0 comments
Please sign in to leave a comment.