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
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024