Filtering by Market
Discounts can be restricted to specific Shopify Markets. Filter to show only those applicable to the customer’s current market.How It Works
- Uses
localization.market.handleto identify the current market - Empty
included_marketsmeans the discount applies to all markets - If
included_marketshas values, the current market must match - Checks
excluded_marketsto exclude specific markets
Complete Example
Filtering by Customer Tags
Discounts can target specific customers using tags. Filter to show only those applicable to the current customer.How It Works
- Included Tags: Customer must have at least one tag from
included_customer_tags - Excluded Tags: Customer must not have any tag from
excluded_customer_tags - Not Logged In: Customers who aren’t logged in are excluded from tag-targeted discounts
Complete Example
Combined Filtering
Combine both market and customer tag checks for complete eligibility filtering:Next Steps
- Learn how to access discount data
- View complete examples
- Check the full reference