Shopify themes, liquid, logos, and UX
Hello,
I'm currently running the Boost theme and hide my prices when an item is sold out. I'm now looking at hiding the price when the product is not sold out, but the amount is set to $0. I'm currently using this option for items that I want customers to request a price ('price on application') for high-end value items.
I can't seem to find a successful code option for the theme I'm running.
Can anyone please provide any assistance?
Products that fall into this category can be seen here:
https://thatretropiece.com/collections/wall-sculptures
Solved! Go to the solution
This is an accepted solution.
Hi @StanSavellis ,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Find file product-block.liquid and search for the code snippets below
Step 3: Wrap all the code i've mark above by this code
{% if product.price > 0 %}
// This is the marked code
{%endif}
It will look like
Step 4. Find file main-product.liquid and search for the code snippets below
Step 5: Wrap all the code i've mark above by this code
{% if current_variant.price > 0 %}
// This is the marked code
{%endif}
It will look like
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
This is an accepted solution.
Hi @StanSavellis ,
Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code
Step 2: Find file product-block.liquid and search for the code snippets below
Step 3: Wrap all the code i've mark above by this code
{% if product.price > 0 %}
// This is the marked code
{%endif}
It will look like
Step 4. Find file main-product.liquid and search for the code snippets below
Step 5: Wrap all the code i've mark above by this code
{% if current_variant.price > 0 %}
// This is the marked code
{%endif}
It will look like
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Thank you, thank you, THANK YOU - worked perfectly. Appreciate your time.
@StanSavellis , glad to hear that 😊
B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.
B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.
B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.
BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now
Shopify and our financial partners regularly review and update verification requiremen...
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