> ## Documentation Index
> Fetch the complete documentation index at: https://developers.loyaltylion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Discount combinations on Magento 2

> [!WARNING]
>
> This page describes version 2.0 of the LoyaltyLion module for Magento 2, which
> isn't released yet, and applies from the 2.0 release. Until then, install the
> current module by following [Adobe Commerce
> 2](https://developers.loyaltylion.com/docs/installation/adobe-commerce-2.md).

A reward's code applies through cart price rules of its own in your store, alongside your store's other rules under **Marketing > Cart Price Rules**. Magento decides which rules apply to a cart, in what order, from each rule's **Priority** and **Discard subsequent rules**. Your reward's rules take both from the reward in LoyaltyLion.

## Set them for a reward

In LoyaltyLion, open the reward and find **Discount combinations** on its form. It's on discount, free shipping, product and redeem at checkout rewards.

* **Priority**: where the reward's rules sit in the order. Lower numbers apply first. The default is 0.
* **Discard subsequent rules**: when a cart has a code from this reward, rules with a higher priority number don't apply, and rules with the same priority might not. On by default.

When you save a change, LoyaltyLion updates the reward's rules in your store, including the rules of codes that shoppers have claimed and not used yet.

## How Magento applies them

* Magento applies rules from the lowest **Priority** number to the highest.
* A rule with **Discard subsequent rules** on stops the rules after it from applying.
* Rules that share a priority apply in no set order. Rewards start at priority 0, so give a reward a different priority from your store's rules wherever the order matters.
* A Magento Open Source cart takes one coupon code at a time, so a reward's code never combines with another code. It combines only with rules that need no coupon.

## Examples

These all use a \$34 cart, an automatic rule in your store that takes 10% off, and a reward code worth \$5.

| Order and settings | Discount |
| - | - |
| The 10% rule applies first and doesn't discard, then the reward's code | \$8.40: \$3.40, then \$5.00 |
| The reward's code applies first and doesn't discard, then the 10% rule | \$7.90: \$5.00, then 10% of the \$29 left |
| The reward's code applies first and discards subsequent rules | \$5.00: the 10% rule doesn't apply |
| The 10% rule applies first and discards subsequent rules | \$3.40: Magento removes the reward's code from the cart |

So to let a reward's code add to an automatic promotion, give the promotion a lower priority number than the reward, or turn off **Discard subsequent rules** on a reward that applies first. To stop the two adding up, turn on **Discard subsequent rules** on whichever applies first. When that's your store's rule, Magento takes the reward's code off the cart, so the shopper can't use the code while that rule applies.
