Package DE_EPAGES::Order::API::ProductValidator
helper class for stock level shop setting, this is use by the REST API
@EXPORT_OK |
Functions
ValidateAvailibilityVisibilitySettings
Check if products is visible and available Throws an error in case of product is not visible or not available
Syntax |
ValidateAvailibilityVisibilitySettings( $Product ); |
Input |
|
ValidateStockLevelSettings
Check if has enough products on stock, according to the shop setting Throws an error in case of low stock level and setting restrition
Syntax |
ValidateStockLevelSettings( $Product, $RequestQuantity ); |
Input |
|