Message tokens: show real values in a message

A token is a placeholder in a message. When a customer sees the message, MinMaxify replaces the token with the real value, for example the name of the product or your minimum quantity.

Example. This message:

{{ProductName}}: Must have at least {{ProductMinQuantity}} of this item.

is shown to the customer as:

Blue Widget - Small: Must have at least 3 of this item.

You change messages on the Messages page. See Change the messages your customers see.

How to write a token

  • Type the token exactly as it is written here, with two braces on each side: {{CartMinAmount}}.
  • Capital letters matter. {{cartminamount}} does not work.
  • Use a token only in the section it belongs to: cart tokens in Global Limit Messages, product tokens in Product Limit Messages, group tokens in Group Limit Messages.
  • Use a token only when its limit is set. For example, {{CartMaxAmount}} has no value when you have no maximum order amount.
  • The original text of each message already has the right tokens for that message. To see it again after you changed a message, click Reset to default next to the message.

Cart tokens

For the messages under Global Limit Messages.

Token Replaced with
{{CartQuantity}} The number of items in the cart now.
{{CartMinQuantity}} Your Minimum items.
{{CartMaxQuantity}} Your Maximum items.
{{CartQuantityMultiple}} Your Multiple of for the total number of items.
{{CartQuantityDeficit}} How many more items the customer needs to add.
{{CartQuantityExcess}} How many items the cart is over your maximum.
{{CartAmount}} The cart amount now.
{{CartMinAmount}} Your Minimum order amount ($).
{{CartMaxAmount}} Your Maximum order amount ($).
{{CartWeight}} The weight of the cart now.
{{CartMinWeight}} Your Minimum weight.
{{CartMaxWeight}} Your Maximum weight.
{{WeightUnit}} Your weight unit: g, kg, lb or oz.

Product tokens

For the messages under Product Limit Messages.

Token Replaced with
{{ProductName}} The product with its variant, for example "Blue Widget - Small". For a limit with Combine variant quantities, the product title only.
{{ProductTitle}} The product title, without the variant.
{{ProductSKU}} The SKU of the item.
{{ProductQuantity}} The quantity of this item in the cart now.
{{ProductMinQuantity}} The minimum quantity for this item.
{{ProductMaxQuantity}} The maximum quantity for this item.
{{ProductQuantityMultiple}} The multiple for this item.
{{ProductQuantityDeficit}} How many more of this item the customer needs to add.
{{ProductQuantityExcess}} How many of this item the cart is over the maximum.
{{ProductAmount}} The total price of this item in the cart.
{{ProductMinAmount}} The minimum amount for this item. Used in Product min subtotal.
{{ProductMaxAmount}} The maximum amount for this item. Used in Product max subtotal.

Group tokens

For the messages under Group Limit Messages. Most stores do not see this section. It is for stores that use Group Limits.

Token Replaced with
{{GroupTitle}} The Title of the group.
{{GroupQuantity}} The quantity of the group's products in the cart now.
{{GroupMinQuantity}} The group's Min Qty.
{{GroupMaxQuantity}} The group's Max Qty.
{{GroupQuantityMultiple}} The group's Multiple.
{{GroupQuantityDeficit}} How many more of the group's products the customer needs to add.
{{GroupQuantityExcess}} How many of the group's products the cart is over the maximum.
{{GroupAmount}} The total price of the group's products in the cart.
{{GroupMinAmount}} The group's Min Total ($).
{{GroupMaxAmount}} The group's Max Total ($).

Amounts

A token for an amount, such as {{CartMinAmount}}, shows the amount in your store's currency format, for example $1,250.50.

To show the plain number instead, turn on Skip Shopify currency formatting in messages on the Messages page. The amount then shows without a currency sign, and you can type your own in the message.

Where tokens do not work

  • A rule's Message to customers. Type the numbers and names in the text yourself.
  • The texts in UI Messages, except the Intro message.
  • The Product Limits block on your product pages. It has its own placeholders, with one brace: {min}, {max} and {multiple}. See Show a product's limits on the product page.

A message can NOT calculate a value. It can only show the tokens in this article.

Still need help? Contact Us Contact Us