PrestaShop Administration & Productivity

Promo Codes & Discounts in the Orders List — PrestaShop 8 & 9

The promo codes used and the discount amount, right in the back-office orders list.

Add two columns to the orders list: the promo code(s) used and the total discount amount, formatted in the order currency. No order to open, no core override — just the information you need, at a glance.

PrestaShop 8 & 9 Back office Promo codes Multilingual Multistore No core override
  • 30-day refund
  • 12 months updates
  • 24h support
www.datafirefly.com/en/
Order Vouchers DataFirefly Module Prestashop
v1.0.0 · updated 2026-06-09
What it does

The short version.

01

Promo codes visible in the list

A column shows the voucher code(s) actually used on each order, without opening the order.

02

Discount amount

A second column totals the discount applied, formatted in each order's currency.

03

Native Symfony grid (PS 8 & 9)

The module plugs into the official orders grid through the definition and query builder hooks. No override, no controller override.

04

Correlated sub-queries, zero duplicates

Data comes from correlated sub-queries on order_cart_rule: no duplicated rows, no conflict with the grid's grouping.

05

Multilingual & multistore

Column labels are translatable and the display respects the current shop context.

06

Lightweight and safe

No table added, no database write: the module only reads and displays. Clean install and uninstall.

The long version

Everything you'd want to know before you install.

A detailed look at how Promo Codes & Discounts in the Orders List — PrestaShop 8 & 9 works, why we built it the way we did, and the thinking behind the features above.

§ 01

The problem: promos are invisible in the list

PrestaShop's orders list shows the amount paid, but never which promo code was used or how much it cost. To find out, you have to open each order one by one. As soon as you run a promo code campaign, tracking usage becomes a tedious job.

§ 02

The solution: two columns, all the info

This module adds two columns straight to the orders list: the promo codes used and the total discount amount. You can spot at a glance which orders received a promotion, and for how much, without opening a single order.

§ 03

Built on the official Symfony grid

From PrestaShop 1.7.7, the orders list uses the Symfony grid. The module hooks into it through the official actionOrderGridDefinitionModifier (adding the columns) and actionOrderGridQueryBuilderModifier (fetching the data) hooks. No controller is overridden, no core file is modified.

§ 04

Reliable data, no side effects

Codes and amounts are read via correlated sub-queries on the order_cart_rule and cart_rule tables. This approach avoids any row duplication and any conflict with the grid's internal grouping. The amount is shown in each order's currency, and code-less automatic promotions are excluded from the codes column.

§ 05

Lightweight, safe and reversible

The module creates no table and writes nothing to the database: it only reads and displays. Since core sorting relies on a whitelist of fields, clicking the new column headers causes no error. Perfectly clean install and uninstall.