Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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?
Solved! Go to the solution
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.
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.
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.
In that case you can ask your developer group for documentation of development done by them.
That document could help you achieving this.
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.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025