SilverCart\Model\Product\Product::checkForAvailabilityStatusChange
Checks whether there is a status change needed and executes the change if needed.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
Signature
protected function checkForAvailabilityStatusChange(int
$stockQuantityBefore,
[boolean
$doWrite = true] )
Parameters
$stockQuantityBefore
— int- Stock quantity before change.
$doWrite
— boolean- Set to false to prevent a write.
Returns
- void