A merchant is experiencing issues with zero-priced products appearing in their store due to operational errors, leading to unwanted orders. They want to prevent customers from purchasing items priced at $0.
Proposed Solutions:
Disable the checkout button on cart drawer and cart page when zero-priced products are detected
Restrict users from adding zero-priced items to cart by disabling the add-to-cart button on product pages
Resolution:
The original poster found a solution using Liquid code that conditionally hides elements when product price is ≤ $1:
Implementation Questions:
Other users asked where to place this code snippet. The response indicates it’s typically inserted in the product page template file to control price visibility. Note: The merchant uses Minimog 3.0 theme (non-Shopify marketplace theme), which may affect implementation specifics.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
Hello, I have products with a price of 0 and in stock. Since our operation is busy, sometimes prices with 0 prices may appear in between and orders may come from these products.
I do not want any orders to come from products with a price of 0 in any way and I do not know how to do this.
I had a look at the store and if feel if the product price in 0 in product page/cart page we restrict the user from adding to cart by disabling the button.
Same way on cart page you can check if any of the price is 0 and doable the button accordingly.
As I see Minimog theme is not a shopify market theme, I unable to have access to code so will not be able to guide with the exact code.
Highly recommend you to hire a shopify expert. Thanks
First of all, thank you for your help. We don’t need help from shopify experts for this fix. As a result of a little research, with the help of the code below, I will not show the places between when the price is 0.
{%- unless product.price <= 1 -%}
If the price is less than 1, this place will work.
{% endunless %}
the reason I said is would would need technical expertise to add these type of code.
Looks like you are a code geek, if you would have told me I will have sent you the snippet of code straight away.
Usually what happens is we give snippet and merchants don’t understand where to place the code and here you have a theme out of shopify so I was out of scope.