Sales Orders

How do I prevent a $0 dollar sales order with products on the order that will ship out without a payment?

You could set up a flow to do that.

@junehudson , can you clarify how every product in the cart can end up as $0? Is it due to discounts being applied?

Hi Junehudson,

Assuming you’re on Shopify Plus, you could build a custom app using the Shopify Functions Cart/Checkout Validation API.

https://shopify.dev/docs/api/functions/reference/cart-checkout-validation

The logic would be pretty straightforward:

  1. If input.cart.totalAmount.amount == 0, then…
  2. Return a FunctionRunResult containing an error message about the minimum order value

This is a foolproof way to prevent checkouts under specific conditions.

Alternatively, you can use an order limits app like Minmaxify (I’m not affiliated, but I’ve met the owner and he’s an awesome guy).

Best,

Tobe