Applied Cart Price Rule IDs in the Order Grid for Magento 2

The Applied Rule IDs for Orders module adds a new column to the order grid (Sales > Orders) containing the IDs of applied promotional rules, also known as Applied Rule IDs. In addition, this information is also displayed on the order details page in the admin panel.
Compatibility
2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0, 2.3.7, 2.3.6, 2.3.5, 2.3.4
€15.38
per item
Email to a Friend

Enquire about this product

Description / Applied Cart Price Rule IDs in the Order Grid for Magento 2

MAGENTO 2 · ORDERS · PROMOTIONS · MAGENTO ADMIN

See which promotional rules were applied to an order.

Kowal Applied Rule IDs for Orders

Add rule IDs to the order list and order details. Analyze discounts faster, explain how promotions work, and find orders linked to selected rules.

Grid column · Order details · Text filter

HOW IT WORKS IN PRACTICE

01 · You open orders
You go to Sales → Orders in the admin panel.

02 · You check Applied Rule IDs
The new column shows the saved rule IDs.

03 · You analyze a specific sale
You will find the same data in the order details.

What does your store gain?

Learn about the module features, use cases, and configuration method.

Applied Rule IDs column in orders

The extension adds an Applied Rule IDs column to the Sales → Orders grid. It shows the IDs of applied promotional rules saved in the order.

The column configuration includes a text filter. In addition, the IDs are displayed on the order details page in the admin panel.

Promotion analysis in daily work

The data helps with marketing analysis, promotion debugging, and searching for sales linked to specific rules.

The standard admin panel does not show these IDs in this location. The module improves order readability and saves your team time by making the needed information available during sales operations.

Magento data without changing original tables

The module joins the applied_rule_ids field from the orders table to the grid collection via LEFT JOIN. It does not modify the original Magento tables, and the mechanism also ensures that the join is not added again.

It displays the IDs saved by Magento. It does not change discount calculation or promotional rules, and it does not create a separate analytics report.

Magento, PHP, and grid extensions

The current description lists Magento Open Source 2.4.x, Magento Commerce 2.4.x, including Magento 2.4.7, and PHP 7.4–8.2. Match the PHP version to the requirements of the specific Magento release.

The description also mentions Amasty and Mageworx grid extensions. Compatibility of a specific version of these add-ons and the module set must be checked in the target store — the data join mechanism itself does not guarantee that every extension will work.

Installation via Composer

Package kowal/module-appliedrules, module Kowal_AppliedRules. Configure access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to the store process.

From configuration to results

1. You open orders
You go to Sales → Orders in the admin panel.

2. You check Applied Rule IDs
The new column shows the saved rule IDs.

3. You analyze a specific sale
You will find the same data in the order details.

Explain a discount without searching the database

Your team analyzes an order with a discount. The Applied Rule IDs column lets you read the IDs of the saved rules, and the order details make it easier to review a specific case.

Based on this, you can find the relevant rules in the admin panel and assess how they were applied.

Make promotion analysis easier for your team

Want to adapt the module to your store? Ask about implementing Kowal Applied Rule IDs for Orders and discuss the configuration or needed extensions.

Ask for a demo version or discuss the implementation.

More Information

Theme compatibility Luma / Blank, KOWAL

Questions and Answers

How can I see which cart price rules applied to a Magento order?

Yes — the module adds an “Applied Rule IDs” column to the orders grid in the admin panel, allowing you to quickly view the identifiers of discount or promotion rules applied to a given order.

Where does Magento 2 get the data for the applied_rule_ids field?

The applied_rule_ids field is a standard field in the sales_order_item table, where Magento stores the identifiers of all cart rules (“Sales Rule”) applied to the order item.

Does installing the module require modifying Magento core files or the store theme?

No — the module works as a Magento 2 extension and integrates with the order grid and order model, without the need to override core files. (However, it is always worth exercising caution and testing compatibility with the theme you use and other modu

Can the “Applied Rule IDs” column help me more easily analyze which promotions generate which orders?

Yes — by seeing the rule identifier (“Rule ID”) on the order, you can quickly filter or export orders by the applied rules, which makes it easier to analyze the effectiveness of promotions and discount codes.

Does the module support multi-store or multilingual stores?

Yes — the module should work regardless of the number of stores (store views) in the Magento 2 installation, because it is based on standard order and item tables. (If needed, check the module documentation for specific features).

Can the “Applied Rule IDs” column also be available in order exports or reports?

Yes — after adding this column to the order grid, you can configure data exports or reports (e.g., CSV/Excel) to include this column. This makes later analysis in external tools easier.

Does this affect the performance of the store or admin panel?

The impact is minimal — the module only adds one column using existing data in the table, so it does not generate significant additional load. However, it is recommended to test its operation in a test environment with a large number of orders.

Can I filter the order grid by the rule identifier (Rule ID)?

Yes — after adding the column, it is usually possible to enable filtering or searching in that column, which allows you to quickly display orders where a specific discount rule was applied.

Does the module work regardless of the Magento 2 version (e.g., 2.3.x, 2.4.x)?

Yes — because the applied_rule_ids field is part of the standard Magento 2 data structure, the module is compatible with versions 2.3.x and 2.4.x (provided the manufacturer states this). It is recommended to check the list of compatible versions before installation.

Module Installation Instructions

Installation via Composer

You will receive Composer repository access details, including the customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with the email address of your account and TWOJ_TOKEN with the received token. Run the commands in the Magento root directory.

composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-appliedrules

Completing the installation

After installing the package, update Magento and clear the cache:

php bin/magento setup:upgradephp bin/magento cache:flush

In a production environment, also run DI compilation and deploy static files according to your store deployment process.

Press to skip carousel

We found other products you might like!

Write Your Own Review
You're reviewing: Applied Cart Price Rule IDs in the Order Grid for Magento 2
Your Rating:
Price
Quality
Support
loader
Loading...

You submitted your review for moderation.

Update cookie preferences