# $productList->reduceStock()

> Lowers the stock of every product in the list by the quantity ordered

- Read more: <https://merx2.wagnerwagner.de/guide/getting-started/stock.md>
- Source: `src/ProductList.php#L83` <https://github.com/wagnerwagner/merx/blob/2.0.0-alpha.11/src/ProductList.php#L83>

```php
$productList->reduceStock(): Wagnerwagner\Merx\ProductList
```

## Return type

`Wagnerwagner\Merx\ProductList`

## Description

Called by `Merx::createOrder()` once an order is written, while
`wagnerwagner.merx.reduceStock` is true. The order exists by then, so a
product which cannot be updated is logged and skipped rather than failing
the order.

## Parent class

`Wagnerwagner\Merx\ProductList`
