ProductStockServiceInterface
in
Table of Contents
- isChangeProductStock() : bool
- The method identify if the stock should be changed with the given parameters
- isCombinationConfigChangeProductStock() : bool
- The method identify if and product stock should be changed with it has the given configuration
Methods
isChangeProductStock()
The method identify if the stock should be changed with the given parameters
public
isChangeProductStock(int $combinationConfigurationType, int $combinationId, string $attributeFilename) : bool
Parameters
- $combinationConfigurationType : int
-
The combination configuration of the current product
- $combinationId : int
-
the combination if relative to the current product
- $attributeFilename : string
-
The filename attribute related to the product
Return values
bool —isCombinationConfigChangeProductStock()
The method identify if and product stock should be changed with it has the given configuration
public
isCombinationConfigChangeProductStock(int $combinationQtdType, bool $isCombination) : bool
Parameters
- $combinationQtdType : int
-
The product combination quantity configuration
- $isCombination : bool
-
is a combination?