Which rule reduced the order price? Applied Rule IDs in Magento 2

2 min read

Silver 3D illustration with accents: burgundy and beige — Magento 2 – Applied Rule IDs Column in Orders

When a customer asks where a discount came from, an order total may be insufficient. Kowal Applied Rule IDs for Orders exposes saved rule identifiers in the order grid and details, providing a starting point for transaction analysis.

Define the data and scope

Before changing anything, record the SKU, store view, customer group and currency. Choose one control product and note its initial state. This keeps the comparison tied to the same data rather than two similar screens with different settings.

Prepare the configuration

After installation, open Sales → Orders and locate Applied Rule IDs. Its column configuration includes a text filter. Prepare a control order with one known rule and record that rule’s ID and discount. Keep separate examples with no promotion and with multiple rules for comparison.

Start in a test environment using the theme and buying process actually used by the store. Change one setting at a time. Record both the selected configuration scope and any inherited value so another administrator can reproduce the result.

Run a concrete scenario

Compare the grid identifiers with the details of the same order. Search using the filter, open the corresponding rules in the admin panel and inspect their conditions. With several IDs, do not assume each maps to a separate customer-facing savings amount; compare the actual saved order first.

Keep the result before and after the change. Repeat the exercise with a qualifying product and a case that should remain unaffected. For multiple store views, also check the message language and pricing context.

Check boundaries and accept the implementation

The module displays applied_rule_ids saved by Magento, does not recalculate orders and does not create a separate discount-attribution report. A LEFT JOIN attaches the data to the grid collection without altering original tables. Verify additional grid extensions in the store’s real version combination.

For acceptance, retain the settings, expected result, observed result and test date. Describe discrepancies with a concrete example. After release, check the same journey on a phone and after reopening the page with the cache in use.

Related stages of the process

When savings differ from expectations, inspect the saved order. Applied Rule IDs exposes rule identifiers, while Discount Details shows amounts to customers. A rule number does not provide a monetary breakdown of each discount source. See Discount Details for Magento 2 and the guide How much does the customer save? Displaying cart discounts in Magento 2.

Check features and configuration in the offering for Magento 2 – Applied Rule IDs Column in Orders.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)