B2B Customer Display custom product template

I am adding a B2B capability to an existing Shopify store (not Shopify Plus) and will be tagging the wholesale-approved customers with “wholesale”.

I would like the logged-in wholesale customers to be able to see a different product page template that is custom for wholesale without having to duplicate products and have one that shows only to DTC and one that shows only to B2B.

Is there a way for logged-in customers to see the Wholesale-Product Template and the regular B2B customer to see the Default Template?

Hi @WhompWhomp

According to your requirement you would have two type of users

  1. Normal B2B user

  2. Wholesale B2B user

When you refer to have different template what changes you are expecting.

Like changing the design and adding specific collection or information is possible for logged in user.

It would have 2 customers:

  1. DTC (direct to consumer) or regular retail

  2. B2B (wholesale)

I want the DTC to see just the Default product template and the wholesale the ‘wholesale-template’ that shows metafield to wholesale terms, Special Wholesale Text about ordering information, Wholesale pricing, and metafield to wholesale selling tools.

Here is part of the prototype:

Yes, this is possible.

Would this be a code solution?

{% if customer.tags contains ‘Wholesale’ or customer.tags contains ‘wholesale’ %}

{% assign page_template_product = ‘wholesale-product’ %}
{% else %}
{% assign page_template_product = section.settings.main_product %}

{% endif %}

Yes, seems like it should work.

I don’t know where you should put this code as 2.0 themes use .JSON template for product.

I am asking the same question. Did you get a reply?

Nope - ended up working with a developer who is now sorting it out!