Shopify themes, liquid, logos, and UX
Hi,
Is it possible to hide product prices until a customer logs in? I have been told a paid app is required but surely there is a work around?
I need to do this for wholesale purposes
Solved! Go to the solution
This is an accepted solution.
Hi @AquaLabs
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
{% if customer %}
<style>
.price {
display: block !important
}
</style>
{% else %}
<style>
.price {
display: none !important
}
</style>
{% endif %}
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
You can enable it in your Shopify Setting account.
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
This is an accepted solution.
Hi @AquaLabs
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the </head> to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the </head>
{% if customer %}
<style>
.price {
display: block !important
}
</style>
{% else %}
<style>
.price {
display: none !important
}
</style>
{% endif %}
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
thanks that worked perfectly.
Now, i seem to be missing the customer login section? How can I add the button for customers to login and see prices?
oh actually i realised it does not work because the customer can still add the product to cart and see the price there.
Can it be changed so that the customer cannot add to cart unless they are logged in?
Hi please replace the code above with this one, it will also hide the add to cart button too.
{% if customer %}
<style>
.price , .product-form {
display: block !important
}
</style>
{% else %}
<style>
.price ,.product-form {
display: none !important
}
</style>
{% endif %}
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
thanks. How do i add a button for a customer to log into their account?
This is an accepted solution.
You can enable it in your Shopify Setting account.
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
excellent thanks so much!
Glad that i can help. Let me know if you have other help
Please let me know if it works by giving it a Like or marking it as a solution!
PageFly - #1 Page Builder for Shopify merchants.
All features are available from Free plan. Live Chat Support is available 24/7.
Hello @AquaLabs
Shoplock shopify app is built for your kind of requirements if you want to take a look at it.
In Canada, payment processors, like those that provide payment processing services t...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025