Back to Top

Prestashop Change Default Combination When Out of Stock {User-Guide}

Updated 23 June 2025

Managing the inventory of an eCommerce store with a large selection of products can be sometimes challenging. Despite your best efforts, product combinations in your store can go out of stock.

Thanks to Prestashop Change Default Combination When out of stock, which automatically changes the default product combination when it gets out of stock.

This extension changes the default combination when its stock becomes unavailable and set a new default product combination.

In default Prestashop, you have to navigate through each product page to change the default combination which can be a lengthy and time-consuming process.

Note:

Searching for an experienced
Prestashop Company ?
Find out More
  • Prestashop Change Default Combination When Out of Stock module is compatible with PrestaShop version 9.x.x.
  • Prestashop Change Default Combination When Out of Stock module is compatible with PrestaShop catalog’s new product page and multi-store feature.

Features

  • Option given to set a new default combination from “all combinations” or “similar combinations”.
  • Option to set a combination with the highest or lowest quantity as a new default product combination.
  • Set the most expensive or least expensive combination as a new default product combination.
  • Set best selling combination as a new default product combination when the current default combination gets out of stock.
  • Restore the previous default combination as default combination when it gets back in stock.
  • Disable product when all of its combinations are out of stock.
  • Select products for which default combination will not be changed.
  • Change the default combination of a product even if “allow orders” is enable.
  • Choose to automatically update default combination when it goes out of stock or not.
  • Admin can choose to update the default combination by cron.

Installation

  1. Go to back-office ->modules ->Module Manager.
  2. Now, click on “Upload a module” button and select the module’s zip file.
  3. In this way, the module gets install on Prestashop.
Prestashop Change Default Combination When out of stock installation
Prestashop Change Default Combination When out of stock installation
Prestashop Change Default Combination When out of stock installation

Module Configuration and Workflow

Default Combinations

Default Combinations

Set New Default Combination From

In this field, admin can select whether a new default combination will be from all the combinations or similar combinations.

If admin selects All Combinations

If a default combination of a product gets out of stock, then the combination next to the default combination will be a new default combination.

Suppose a default combination (Size – S, Color – White) gets out of stock.

default combination

Front End View

default combination

As per selection, combination (Size – S, Color – White) will be the new default combination.

new default combination

If admin selects Similar Combinations

If a default combination of a product gets out of stock. Then the combination containing the attributes similar to that of a default combination will be a new default combination.

combinations

As shown in the image above, the Combination: Size – M, Color – Black is now set as the new default combination as it contains attribute (Color – Black).

Set Default Combination On Basis Of

From here, the admin has to select the parameters based on which a new default combination for a product is selected.

If selected “First in Stock”, then a combination next to the default combination will be a new default combination if it is in stock.

Suppose the first two combinations Size – S, Color – Black and Size – M, Color – White are out of stock.

As per the selection, the combination in stock next to these two combination will be the new default combination.

product combinations

If selected Highest or Lowest Quantity, then the combination with highest or lowest quantity will be the new default combination.

default combination
default combination

If the admin selects highest or lowest price, then most expensive or least expensive combination is set as new default combination.

highest price
lowest price

Restore Previous Default Combination

If this option is enabled, the previous default combination is automatically restored as default combination once it is back in stock.

default combination restored

Whenever a default product combination gets out of stock, its record gets create in a separate “Default Combination Listing” tab.

Under this tab, admin can view a list of products and their out of stock default combinations.

If admin has disabled “Restore Previous Default Combination” field, then he has to manually restore the combination from this tab.

restore combination
previous default combination

Previous default combination will be restore as current default combination on clicking restore button.

previous default combination

Set New Default Combination For Allow Orders

Suppose admin has enabled Allow orders under “When out of stock”. This means even if a combination gets out of stock, then also admin can accept the orders for the same.

current default combination

If admin has enabled “Set New Default Combination For Allow Order”, then in this case, a new default combination is set when current default combination gets out of stock.

new default combination

Disable product when all combinations are out of stock

Enable this option to automatically disable product when all of its combinations are out of stock.

Exclude products

This option enables admin to select the products for which default combination will not be changed.

exclude products

General Settings

General Settings

Automatically change default combination

Enable this option in the case you want to automatically change the default combination when it goes out of stock.
Else, you can also keep it off.

Set new default combination if product default combination is out-of-stock

With this option you can set default combination for all your products whose default combination went out of stock.

Update default combination by cron

By enabling this option, the default combination will be changed through CRON when it goes out of stock.

Admin needs to set CRON job for this.

0 0 * * * curl http://www.sitename.com/ps1783/en/module/wkproductdefaultcombination/defaultcombinationcron?token=your token

You have to replace the string “www.sitename.com” with your site link.

Support

For any kind of technical assistance or query, please raise a ticket at http://webkul.uvdesk.com or send us a mail at support@webkul.com.

Also, please explore our Prestashop development services and vast range of quality Prestashop addons.

Current Product Version - 1.2.1

Supported Framework Version - 9.x.x, 8.x.x, 1.7.x.x

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • Karl Michalski
    • Mehul Gupta (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home

    Prestashop Change Default Combination When Out of Stock {User-Guide}