Skip to content

Collection-Level Discounts

Collection discounts let you attach an existing Shopify discount code to a collection. When Notifly sends a notification for a product in that collection, the discount code is automatically included in the message.

This is a Pro plan feature.

When a notification fires for a product, Notifly checks whether any of that product’s collections have a discount code assigned. If one is found, the code is included in the notification using the {{discount_code}} template variable.

If the notification itself has a discount code configured directly (at the per-notification level), that takes priority — the collection discount is a fallback.

Expired collection discounts are automatically ignored at send time.

Go to Collection Discounts in the Notifly dashboard and click Add collection discount.

  1. Click Browse to open the collection picker and select a collection from your Shopify store
  2. Enter your Discount code — this must be an existing discount code already created in your Shopify admin
  3. Click Validate to confirm the code exists in Shopify. The form cannot be saved until validation passes
  4. Optionally set an Expiry date — after this date the code will no longer be included in notifications
  5. Click Save

The discount code must already exist in your Shopify admin. Notifly does not create or manage the code itself for collection discounts — it simply attaches an existing code to outgoing notifications. Ensure the code is active and has no usage restrictions that would prevent customers from redeeming it.

To include the discount code in your notification templates, use the {{discount_code}} variable. For example in an email template:

Use code {{discount_code}} at checkout to save on your order.

If no discount applies to a product, the variable renders as an empty string. To show the discount block only when a code is available, wrap it in a conditional (Pro email templates with HTML mode):

{{#if discount_code}}
Use code {{discount_code}} at checkout.
{{/if}}

See Templates for the full list of available discount variables.

Click the delete icon on any row in the Collection Discounts list. The rule is removed immediately — future notifications for products in that collection will no longer include a discount code. Notifications already sent are not affected.

Collection discounts are a broad fallback. For more granular control — including auto-generated unique single-use codes per customer — configure discounts at the individual notification level. Open a specific notification from the Notifications list to access per-notification discount settings. This is also a Pro feature.