thelia/available-default-product-module

1.0.0 2019-09-30 12:50 UTC

This package is auto-updated.

Last update: 2022-07-27 15:58:33 UTC


README

Change default product sale elements when it run out of stock.

When an order is put in status 'Paid' (it must have a status code of 'paid' which is the one by default) the module checks the product sales elements stock, if he is no longer in stock it checks for other variations of the product and sets the first one in stock as the default one.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is AvailableDefaultProduct.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/available-default-product-module:~1.0.0