167 if (
null === $this->isQtyTypeIds) {
168 $this->isQtyTypeIds = [];
169 foreach ($this->config->getAll() as $typeId => $typeConfig) {
170 $this->isQtyTypeIds[$typeId] = isset($typeConfig[
'is_qty']) ? $typeConfig[
'is_qty'] :
false;
174 if ($filter !==
null) {
188 public function isQty($productTypeId)
191 return isset(
$result[$productTypeId]) ?
$result[$productTypeId] :
false;
202 return $this->scopeConfig->isSetFlag(
203 self::XML_PATH_CAN_SUBTRACT,
204 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
215 return (
float)$this->scopeConfig->getValue(
216 self::XML_PATH_MIN_QTY,
217 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
229 return (
float)$this->minsaleqtyHelper->getConfigValue($customerGroupId,
$store);
238 return (
float)$this->scopeConfig->getValue(
239 self::XML_PATH_MAX_SALE_QTY,
240 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
251 return (
float) $this->scopeConfig->getValue(
252 self::XML_PATH_NOTIFY_STOCK_QTY,
253 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
267 return (
bool) $this->scopeConfig->getValue(
268 self::XML_PATH_ENABLE_QTY_INCREMENTS,
269 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
280 return (
float)$this->scopeConfig->getValue(
281 self::XML_PATH_QTY_INCREMENTS,
282 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
295 return (
int) $this->scopeConfig->getValue(
296 self::XML_PATH_BACKORDERS,
297 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
310 return (
int) $this->scopeConfig->isSetFlag(
311 self::XML_PATH_MANAGE_STOCK,
312 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
326 return $this->scopeConfig->isSetFlag(
327 self::XML_PATH_CAN_BACK_IN_STOCK,
328 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
341 return $this->scopeConfig->isSetFlag(
342 self::XML_PATH_SHOW_OUT_OF_STOCK,
343 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
356 return $this->scopeConfig->isSetFlag(
357 self::XML_PATH_ITEM_AUTO_RETURN,
358 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
372 return $this->scopeConfig->isSetFlag(
373 self::XML_PATH_DISPLAY_PRODUCT_STOCK_STATUS,
374 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
386 return $this->scopeConfig->getValue(
387 self::XML_PATH_ITEM . $field,
388 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
399 return $this->scopeConfig->getValue(
400 self::XML_PATH_STOCK_THRESHOLD_QTY,
401 \
Magento\Store\Model\ScopeInterface::SCOPE_STORE,
420 'enable_qty_increments',
const XML_PATH_BACKORDERS
const XML_PATH_CAN_BACK_IN_STOCK
canSubtractQty($store=null)
getQtyIncrements($store=null)
getMinSaleQty($store=null, $customerGroupId=null)
getEnableQtyIncrements($store=null)
getStockThresholdQty($store=null)
isDisplayProductStockStatus($store=null)
const XML_PATH_NOTIFY_STOCK_QTY
getDefaultConfigValue($field, $store=null)
const XML_PATH_ITEM_AUTO_RETURN
const XML_PATH_MANAGE_STOCK
const XML_PATH_STOCK_THRESHOLD_QTY
const XML_PATH_MIN_SALE_QTY
getBackorders($store=null)
isShowOutOfStock($store=null)
getIsQtyTypeIds($filter=null)
const XML_PATH_DISPLAY_PRODUCT_STOCK_STATUS
getManageStock($store=null)
const XML_PATH_MAX_SALE_QTY
const XML_PATH_ENABLE_QTY_INCREMENTS
isAutoReturnEnabled($store=null)
getMaxSaleQty($store=null)
__construct(ConfigInterface $config, ScopeConfigInterface $scopeConfig, MinsaleqtyHelper $minsaleqtyHelper, StoreManagerInterface $storeManager)
getCanBackInStock($store=null)
getNotifyStockQty($store=null)
const XML_PATH_CAN_SUBTRACT
const XML_PATH_QTY_INCREMENTS
const XML_PATH_SHOW_OUT_OF_STOCK