Customizing and Translating Error Messages in DC Order Limits
DC Order Limits lets you fully customize the error messages customers see when they hit a limit. Whether you want to adjust the wording for your brand voice or translate messages into multiple languages, it all happens in one place.
What You Can Customize
Every error message in DC Order Limits can be edited. Common examples include:
- "You can only purchase {max_quantity} of this item"
- "Minimum order of {min_quantity} required"
- "Cart total cannot exceed {max_price}"
You can change the tone, wording, and structure to match your brand — just keep the variables (the parts in {curly brackets} ) intact.
How to Customize Your Error Messages
Step 1: Open the Locales Editor
- From your Shopify admin, open DC Order Limits
- Click Order Limits in the sidebar
- Click the Edit locales button (next to "Create rule")
Step 2: Edit Your Default Messages
Select your default language from the dropdown. This is where you customize your primary error messages.
Edit any message to match your brand voice. For example:
| Default | Customized |
|---|---|
| "Maximum of {max_quantity} allowed" | "Limit {max_quantity} per customer — thanks for understanding!" |
| "Minimum quantity is {min_quantity}" | "This item ships in packs of {min_quantity}" |
Step 3: Understand Variables
Variables are placeholders that automatically fill in with the right values. Do not translate or rename them.
| Variable | What It Shows |
|---|---|
{min_quantity} |
Minimum quantity allowed |
{max_quantity} |
Maximum quantity allowed |
{current_quantity} |
How many the customer has in cart |
{min_price} |
Minimum order/cart value |
{max_price} |
Maximum order/cart value |
{current_price} |
Current cart total |
Correct: "You need at least {min_quantity} items"
Incorrect: "You need at least {minimum_qty} items" ← variable won't work
Adding Translations for Other Languages
If your store serves customers in multiple languages, you can add translations for each language you support.
Step 1: Add a New Language
- In the Locales editor, click Add language
- Select the language from the dropdown
- The app will show all error messages with empty fields for your translations
Step 2: Translate Each Message
Write your translated messages, keeping the variables unchanged:
English: "Maximum of {max_quantity} allowed per order"
French: "Maximum de {max_quantity} autorisé par commande"
Spanish: "Máximo de {max_quantity} permitido por pedido"
How Language Detection Works
DC Order Limits automatically displays the correct language based on:
- The customer's browser language settings
- Your Shopify store's language settings
You don't need to create separate limit rules for each language.
Frequently Asked Questions
Do I need separate rules for different languages?
No. Create your limit rules once, then add translations in the Locales editor. The app automatically shows the right language to each customer.
What's the difference between Localization and Shopify Markets?
- Localization (this feature) controls the language of your error messages
- Shopify Markets controls geographic targeting — which countries can access your store and pricing
If you need different limit amounts for different regions (e.g., max 5 in US, max 10 in EU), create separate rules with targeting conditions. For different languages with the same limits, just add translations here.
My messages aren't showing at all — what's wrong?
If customers are being blocked but don't see any error message, you may need to configure where messages display. See: Setting up error messages for DC Order Limits
Related Articles
- Setting up error messages for DC Order Limits on the Shopify store — Configure where messages appear
- Setting up order limits and cart limits in Shopify — Create your first limit rules
- Troubleshooting: Why my order limits aren't working — Fix common issues