関数
RestRouteGuards::itemsInStockCheck()
GenericError if any items in the cart are out of stock戻り値 戻り値
ファイル: src/Routing/RestRouteGuards.php
public function itemsInStockCheck() {
return function () {
global $usces;
$usces->error_message = $usces->zaiko_check();
/**
* Mirrored Welcart filter
*
* @ignore
*/
$usces->error_message = apply_filters('usces_filter_cart_check', $usces->error_message);
if (!\WCUtils::is_blank($usces->error_message)) {
return $this->module->errors->getErrorResponse(
GenericErrorStore::USCES_ITEM_OUT_OF_STOCK,
[$usces->error_message],
[$usces->error_message]
);
}
};
}