PrestaShop 9.1 changes `CartRule.php` more than many module developers expect

posted Originally published at nicolas-dabene.fr 1 min read

What changes in CartRule.php between PrestaShop 9.0.x and 9.1.x?

PrestaShop 9.1.x introduces the foundations of a new Discount system inside CartRule.php, protected by a feature flag.

That sounds safe at first — and it is, because backward compatibility is preserved while the flag is disabled. But once enabled, several important behaviors change, especially around discount typing, ORDER_LEVEL calculation, shipping inclusion, and compatibility rules. (nicolas-dabene.fr)

In my full write-up, I compare 9.0.x and 9.1.x in detail and explain what PrestaShop module developers should watch before supporting both versions safely.

Read the full article:
https://nicolas-dabene.fr/en/articles/2026/03/05/evolution-cartrule-prestashop-9/

More Posts

Why Friends of Presta Matters More Than Ever for the PrestaShop Ecosystem

Nicolas Dabène - Mar 17

Master Doctrine in PrestaShop: The Clean Way to Handle Dynamic DB Prefixes

Nicolas Dabène - Nov 22, 2025

5 surprising lessons from BMAD about the future of module development

Nicolas Dabène - Mar 11

The $30 AWS Bill I Didn’t Expect (And What It Taught Me)

Ijay - Feb 18

Is AI giving more power to hackers/ attackers than to developers?

Nikhilesh Tayal - Apr 23
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

4 comments
2 comments

Contribute meaningful comments to climb the leaderboard and earn badges!