As a wholesale company we don’t want to show prices unless people are approved with a wholesale account. We used a code to show “login to see price” but when items are added to the cart and people without an account go to check out you can see the total/price of the items. How can I get the total to not show in the cart?
Hello Goldschdr,
You can reuse the same code as you used to hide the prices over product page. It will be same piece of code as you require the same functionality on cart drawer/ cart page.
You can only hide the price on cart page if you are not a Shopify Plus customer.
And if you are a Shopify plus customer, use can use the same piece of code on Checkout page as well.
General code setup for this:-
{% if customer.id == null %}
Your stuff here
{% endif %}
Or you might have used tag to mark a wholesale customer. In this case you can use this as a guide.
https://community.shopify.com/c/technical-q-a/quot-if-customer-tags-contains-quot-does-not-search-for-a-tag/m-p/999855#M42192
Hope this helps.
Hi @goldschdr
You can use our app: B2B Login/Lock & Hide Price
With this app you can hide prices, access restrictions by:
-
The whole store
-
Page
-
Product
-
Product tags
-
Collection
-
Customer
- The app will include a 14-day trial so you can experience the app’s features.
Setting to display the message “Login to see price” when the user is not logged in
Result
Hope this can help you.

