Merx

$productList->reduceStock()

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

$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