Why isn't my Shopify customer tagging for product pricing working?

jakes
Visitor
1 0 0

Can anyone tell me, whats wrong here? I want to tag customers with different tags and show them separate Products with different pricing. Below you see the code part which is included in the theme.liquid file. It replaces the "{{ content_for_layout }}" part. 

 

<!-- wholesale area -->

{% if template contains 'wholesale' %}

{% if customer %}

{% if customer.tags contains 'wholesale' %}

{{ content_for_layout }}


{% else if template contains 'gastro' %}

{% else if customer %}

{% else if customer.tags contains 'gastro' %}

{{ content_for_layout }}


{% else if template contains 'leh' %}

{% else if customer %}

{% else if customer.tags contains 'leh' %}

{{ content_for_layout }}

{% else %}

{% include 'b2b-note' %}

{% endif %}

{% else %}

{% include 'b2b-note' %}

{% endif %}

{% else%}

{{ content_for_layout }}

{% endif %}

Reply 1 (1)

BSSCommerce2
Shopify Partner
16 0 0

Why do you need to do that?

 

Please check our app, just plug-n-play. It is very easy to use and setup different custom pricing areas for different customers

 

https://apps.shopify.com/b2b-solution-custom-pricing 

A full-service agency that companions with B2B and B2C ecommerce brands to accelerate their growth. With experience and expertise in multiple platforms


Check our B2B Apps on Shopify