Goal: Enforce a $10 minimum order in Shopify’s Spotlight theme without using shipping-rate workarounds, and show a cart message if under the threshold.
Proposed code: A Liquid check in the cart template using cart.total_price (in cents) divided_by: 100 to compare against 10, displaying a warning when below the minimum. This was shared as a generic example; exact placement guidance for specific themes (e.g., Debut) wasn’t provided.
Customization requests: Applying minimums based on delivery method (local vs 3PL) or customer agreements was deemed feasible via custom logic/user level, but further help was pushed to private/paid channels. Additional asks included setting a cart maximum, INR 229 minimum, and code for another theme (Ella), with a video link offered for the maximum use case.
Latest update/alternative: A participant noted Liquid-only checks aren’t foolproof (can be bypassed). They recommended the Cart Lock app with a rule: Condition “Cart subtotal” — Block if less than 10; add a custom error message (“Uh oh! You must meet a $10 order minimum for checkout”), then save.
Status: No Spotlightspecific step-by-step code solution confirmed. App-based enforcement is presented as a more reliable outcome; discussion remains partially unresolved for a pure-code approach.
Summarized with AI on December 18.
AI used: gpt-5.
I’m looking to edit the liquid code for my theme “Spotlight” so a customer needs to spend a minimum of $10 before they can checkout. I’ve seen a few tutorials for how to do this through setting your shipping rates at a minimum amount, but that’s not what I’m looking to do.
I want the customer to go to their cart and if they have less than $10 in there, a little text blurb that says “Uh oh! You must meet a $10 order minimum for checkout.” or something like that. I know this can be done as I’ve seen a couple tutorials on youtube for it, but they were for different themes. I need instructions for how to do this with “Spotlight” theme.
If anyone is willing to help me for free I would really appreciate it. My budget doesn’t allow for me to pay a freelancer to set it up for me. My budget is $0. From what I can tell it’s relatively quick and easy. Would be very grateful for some help. Thank you. ~Lauren
{% assign _pVal = cart.total_price | divided_by : 100 %}
{% if _pVal > 10 %}
// Put all your checkout code here
{% else %}
Order must be greater than 100
{% endif %}
Refer to the attached screenshot for reference you can change the value {% if _pVal > 10 %} according to your requirement.
The code is not a 100% foolproof solution because there are multiple ways a customer can bypass this restriction. You can use the Cart Lock app to block any orders under $10 effectively.
Open the app and click on the “Add a new rule” button.
Click “Add a new condition” and select the “Cart subtotal” option.
Add “10” in the “Block if less than” field.
In the “Error message” field, add “Uh oh! You must meet a $10 order minimum for checkout”.