Default Combination by Price is a lightweight PrestaShop module that automatically sets each product's default combination (attribute variant) to the one with the lowest effective final price. Without this module, the default combination shown to visitors on a product page is typically whichever was first created — which may not be the cheapest option. This module solves that by computing the actual final price for every combination and updating the default flag accordingly, ensuring shoppers always see the most attractive price at a glance.
- Automatic lowest-price selection: Scans all product combinations, computes their effective final price, and sets the cheapest variant as the product default by updating the relevant database flags.
- Cron-friendly execution: Includes a secure front controller endpoint so the update process can be scheduled as a cron job, with support for
dry_run, batch_size, and start parameters for safe testing and paginated bulk processing. - Back Office integration: Can also be triggered manually from the module configuration page, with a configurable secure key to protect the cron endpoint and an enable/disable debug switch.
- Optional debug logging: When debug mode is enabled, cron runs write to a log file with automatic trimming to keep only the last 100 lines, preventing uncontrolled growth.
- No extra database tables: Operates entirely within PrestaShop's existing data structures, with no schema changes required.
This module is ideal for store owners managing catalogs with product combinations that vary significantly in price — such as size, color, or configuration variants. It is particularly useful for large catalogs where manually adjusting default combinations is impractical, and for stores that run scheduled automation via cron jobs.
Comments (0)
Your review appreciation cannot be sent
Report comment
Report sent
Your report cannot be sent