Applied Cart Price Rule IDs in the Order Grid for Magento 2
- 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
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
Where does Magento 2 get the data for the applied_rule_ids field?
Does installing the module require modifying Magento core files or the store theme?
Can the “Applied Rule IDs” column help me more easily analyze which promotions generate which orders?
Does the module support multi-store or multilingual stores?
Can the “Applied Rule IDs” column also be available in order exports or reports?
Does this affect the performance of the store or admin panel?
Can I filter the order grid by the rule identifier (Rule ID)?
Does the module work regardless of the Magento 2 version (e.g., 2.3.x, 2.4.x)?
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-appliedrulesCompleting the installation
After installing the package, update Magento and clear the cache:
php bin/magento setup:upgradephp bin/magento cache:flushIn a production environment, also run DI compilation and deploy static files according to your store deployment process.