No image available

Expired Cart Rules Cleaner

Removes expired or deactivated discount codes from active PrestaShop carts, closing a known bug that lets customers continue using invalid promotions.

Developed by Alfio Salanitri (www.alfiosalanitri.it)

Get This Module Free on GitHub
License: MIT Status: Active Health: Very Outdated

Info updated 1 month ago

Sources
Stars: 2 Last commit: Jul 17, 2024
Type
Module

Info checked: Mar 2, 2026

Expired Cart Rules Cleaner is a workaround module that addresses a known unresolved bug in PrestaShop where customers who added a discount code to their cart before it expired can continue to use that discount even after the code has been deactivated or expired — as long as their cart remains active. This module provides a mechanism to remove those stale, invalid discount codes from abandoned carts.

  • Expired code removal: Cleans up discount codes from active carts where the associated cart rule has since expired or been deactivated.
  • Cronjob support: The module exposes a URL that can be scheduled as a periodic cronjob to run the cleanup automatically at defined intervals.
  • Manual access option: The cleanup URL can also be accessed manually from the browser or command line without requiring a scheduled task.
  • Admin configuration panel: Includes a back office configuration screen for module management.

This module is recommended for PrestaShop store owners who use time-limited or one-off discount codes and want to prevent customers from exploiting the cart persistence bug to continue benefiting from expired promotions. It is particularly useful for stores running frequent promotional campaigns where code validity windows matter.

  • Reference
    expired_cart_rules_cleaner

  • License
    MIT
  • Status
    Active

Comments (0)

No customer reviews for the moment.
Loading...