I don't want orders from Shopify with a price of 0

Topic summary

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:

{%- unless product.price <= 1 -%}
[content to hide]
{% endunless %}

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 would appreciate your help.

Have a good day.

You can add disable the checkout button on your cart drawer and cart page of you find any product with 0 price on cart.

Let me know your store url and theme.

Thanks

https://senatech.com/en

Minimog 3.0

Hi @ibrahimguzel005

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

Hello,

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 %}

Thanks.

That’s great @ibrahimguzel005

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.

Thanks

where DO you put this code?

1 Like

So using a sense theme, where can that code be added? Thank you.

Usually a code like this is inserted on the product page template file to hide/show the price.