How to direct retail and wholesale customers to different product pages?

Solved

How to direct retail and wholesale customers to different product pages?

Webmit
Tourist
5 1 1

Hello.

 

I have a site that was built by someone else and I need to figure out how to fix an issue we are having.  We sell retail and wholesale on the site using the same products, but wholesale is sold at different prices and requires a customer to be logged in to see that content.  There is content that both retail and wholesale customers access and it has hyperlinks to product pages.  I need the links to go to the appropriate product page which is based on their account and login status.  Retail customer go to the retail product page and wholesale (when logged in) have the same links that go to the wholesale product page.

 

Can anyone help?

Accepted Solution (1)
Webmit
Tourist
5 1 1

This is an accepted solution.

I have reached out to them, but am not getting much help and they only provided "how to's" for content updates, nothing else was given.  

 

Thankfully I was able to develop a solution on my own to hide these sections on the home page when a user logs in as wholesale customer.  

 

{%- liquid
assign customer_wholesale_status = false
if customer.tags contains 'wholesale'
assign customer_wholesale_status = true
endif
if customer_wholesale_status == true and section.settings.hide_section_for_wholesale == true
assign hide_section = true
endif
-%}

I added a checkbox for turning on and off the sections of the home page this applies to as well.  It's not elegant, but it works for now.

 

View solution in original post

Replies 4 (4)

gr_trading
Shopify Partner
2037 149 206

@Webmit 

 

If you are willing to hire someone would like to work on it.

 

Can we connect over the whatsapp or email details are in bio.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
Webmit
Tourist
5 1 1

Thanks for the offer, but I am interested in learning and looking for some guidance.  I would hire the group that created the site if I were going to hire someone to do it for me.

gr_trading
Shopify Partner
2037 149 206

In that case you can ask your developer group for documentation of development done by them.

 

That document could help you achieving this.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
Webmit
Tourist
5 1 1

This is an accepted solution.

I have reached out to them, but am not getting much help and they only provided "how to's" for content updates, nothing else was given.  

 

Thankfully I was able to develop a solution on my own to hide these sections on the home page when a user logs in as wholesale customer.  

 

{%- liquid
assign customer_wholesale_status = false
if customer.tags contains 'wholesale'
assign customer_wholesale_status = true
endif
if customer_wholesale_status == true and section.settings.hide_section_for_wholesale == true
assign hide_section = true
endif
-%}

I added a checkbox for turning on and off the sections of the home page this applies to as well.  It's not elegant, but it works for now.