No image available

Default Combination by Price

Automatically sets each product's default combination to the lowest-priced variant, ensuring shoppers always see the best price first — configurable via Back Office or scheduled cron.

Developed by Tecnoacquisti.com

Get This Module Free on GitHub
PS 1.7 – 9.x License: MIT Status: Active Health: Excellent

Info updated 1 month ago

Sources
Stars: 1 Last commit: Jan 28, 2026
Type
Module

Info checked: Mar 2, 2026

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.

  • Reference
    tecdefaultcombination

  • License
    MIT
  • PS Compatibility
    1.7.x
    8.x
    9.x
  • Status
    Active

Comments (0)

No customer reviews for the moment.
Loading...