Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ConfigInterface $config, ScopeConfigInterface $scopeConfig, MinsaleqtyHelper $minsaleqtyHelper, StoreManagerInterface $storeManager) | |
getDefaultScopeId () | |
getIsQtyTypeIds ($filter=null) | |
isQty ($productTypeId) | |
canSubtractQty ($store=null) | |
getMinQty ($store=null) | |
getMinSaleQty ($store=null, $customerGroupId=null) | |
getMaxSaleQty ($store=null) | |
getNotifyStockQty ($store=null) | |
getEnableQtyIncrements ($store=null) | |
getQtyIncrements ($store=null) | |
getBackorders ($store=null) | |
getManageStock ($store=null) | |
getCanBackInStock ($store=null) | |
isShowOutOfStock ($store=null) | |
isAutoReturnEnabled ($store=null) | |
isDisplayProductStockStatus ($store=null) | |
getDefaultConfigValue ($field, $store=null) | |
getStockThresholdQty ($store=null) | |
getConfigItemOptions () | |
Data Fields | |
const | DEFAULT_WEBSITE_ID = 1 |
const | XML_PATH_GLOBAL = 'cataloginventory/options/' |
const | XML_PATH_CAN_SUBTRACT = 'cataloginventory/options/can_subtract' |
const | XML_PATH_CAN_BACK_IN_STOCK = 'cataloginventory/options/can_back_in_stock' |
const | XML_PATH_ITEM = 'cataloginventory/item_options/' |
const | XML_PATH_MIN_QTY = 'cataloginventory/item_options/min_qty' |
const | XML_PATH_MIN_SALE_QTY = 'cataloginventory/item_options/min_sale_qty' |
const | XML_PATH_MAX_SALE_QTY = 'cataloginventory/item_options/max_sale_qty' |
const | XML_PATH_BACKORDERS = 'cataloginventory/item_options/backorders' |
const | XML_PATH_NOTIFY_STOCK_QTY = 'cataloginventory/item_options/notify_stock_qty' |
const | XML_PATH_MANAGE_STOCK = 'cataloginventory/item_options/manage_stock' |
const | XML_PATH_ENABLE_QTY_INCREMENTS = 'cataloginventory/item_options/enable_qty_increments' |
const | XML_PATH_QTY_INCREMENTS = 'cataloginventory/item_options/qty_increments' |
const | XML_PATH_SHOW_OUT_OF_STOCK = 'cataloginventory/options/show_out_of_stock' |
const | XML_PATH_ITEM_AUTO_RETURN = 'cataloginventory/item_options/auto_return' |
const | XML_PATH_DISPLAY_PRODUCT_STOCK_STATUS = 'cataloginventory/options/display_product_stock_status' |
const | XML_PATH_STOCK_THRESHOLD_QTY = 'cataloginventory/options/stock_threshold_qty' |
Protected Attributes | |
$config | |
$scopeConfig | |
$minsaleqtyHelper | |
$isQtyTypeIds | |
$storeManager | |
Class Configuration
Definition at line 17 of file Configuration.php.
__construct | ( | ConfigInterface | $config, |
ScopeConfigInterface | $scopeConfig, | ||
MinsaleqtyHelper | $minsaleqtyHelper, | ||
StoreManagerInterface | $storeManager | ||
) |
ConfigInterface | $config | |
ScopeConfigInterface | $scopeConfig | |
MinsaleqtyHelper | $minsaleqtyHelper | |
StoreManagerInterface | $storeManager |
Definition at line 139 of file Configuration.php.
canSubtractQty | ( | $store = null | ) |
Check if is possible subtract value from item qty
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 200 of file Configuration.php.
getBackorders | ( | $store = null | ) |
Retrieve backorders status
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 293 of file Configuration.php.
getCanBackInStock | ( | $store = null | ) |
Retrieve can Back in stock
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 324 of file Configuration.php.
getConfigItemOptions | ( | ) |
Retrieve inventory item options (used in config)
Implements StockConfigurationInterface.
Definition at line 411 of file Configuration.php.
getDefaultConfigValue | ( | $field, | |
$store = null |
|||
) |
string | $field | |
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 384 of file Configuration.php.
getDefaultScopeId | ( | ) |
{Retrieve Default Scope ID
Implements StockConfigurationInterface.
Definition at line 154 of file Configuration.php.
getEnableQtyIncrements | ( | $store = null | ) |
Retrieve whether Quantity Increments is enabled
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 265 of file Configuration.php.
getIsQtyTypeIds | ( | $filter = null | ) |
int | null | $filter |
Implements StockConfigurationInterface.
Definition at line 165 of file Configuration.php.
getManageStock | ( | $store = null | ) |
Retrieve Manage Stock data wrapper
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 308 of file Configuration.php.
getMaxSaleQty | ( | $store = null | ) |
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 236 of file Configuration.php.
getMinQty | ( | $store = null | ) |
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 213 of file Configuration.php.
getMinSaleQty | ( | $store = null , |
|
$customerGroupId = null |
|||
) |
null | string | bool | int | \Magento\Store\Model\Store | $store | |
int | $customerGroupId |
Implements StockConfigurationInterface.
Definition at line 227 of file Configuration.php.
getNotifyStockQty | ( | $store = null | ) |
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 249 of file Configuration.php.
getQtyIncrements | ( | $store = null | ) |
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 278 of file Configuration.php.
getStockThresholdQty | ( | $store = null | ) |
null | string | bool | int | \Magento\Store\Model\Store | $store |
Definition at line 397 of file Configuration.php.
isAutoReturnEnabled | ( | $store = null | ) |
Check if credit memo items auto return option is enabled
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 354 of file Configuration.php.
isDisplayProductStockStatus | ( | $store = null | ) |
Get 'Display product stock status' option value Shows if it is necessary to show product stock status ('in stock'/'out of stock')
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 370 of file Configuration.php.
isQty | ( | $productTypeId | ) |
int | $productTypeId |
Implements StockConfigurationInterface.
Definition at line 188 of file Configuration.php.
isShowOutOfStock | ( | $store = null | ) |
Display out of stock products option
null | string | bool | int | \Magento\Store\Model\Store | $store |
Implements StockConfigurationInterface.
Definition at line 339 of file Configuration.php.
|
protected |
Definition at line 107 of file Configuration.php.
|
protected |
Definition at line 126 of file Configuration.php.
|
protected |
Definition at line 119 of file Configuration.php.
|
protected |
Definition at line 114 of file Configuration.php.
|
protected |
Definition at line 131 of file Configuration.php.
const DEFAULT_WEBSITE_ID = 1 |
Default website id
Definition at line 22 of file Configuration.php.
const XML_PATH_BACKORDERS = 'cataloginventory/item_options/backorders' |
Back orders config path
Definition at line 62 of file Configuration.php.
const XML_PATH_CAN_BACK_IN_STOCK = 'cataloginventory/options/can_back_in_stock' |
Back in stock config path
Definition at line 37 of file Configuration.php.
const XML_PATH_CAN_SUBTRACT = 'cataloginventory/options/can_subtract' |
Subtract config path
Definition at line 32 of file Configuration.php.
const XML_PATH_DISPLAY_PRODUCT_STOCK_STATUS = 'cataloginventory/options/display_product_stock_status' |
Path to configuration option 'Display product stock status'
Definition at line 97 of file Configuration.php.
const XML_PATH_ENABLE_QTY_INCREMENTS = 'cataloginventory/item_options/enable_qty_increments' |
Enable qty increments config path
Definition at line 77 of file Configuration.php.
const XML_PATH_GLOBAL = 'cataloginventory/options/' |
Inventory options config path
Definition at line 27 of file Configuration.php.
const XML_PATH_ITEM = 'cataloginventory/item_options/' |
Item options config path
Definition at line 42 of file Configuration.php.
const XML_PATH_ITEM_AUTO_RETURN = 'cataloginventory/item_options/auto_return' |
Auto return config path
Definition at line 92 of file Configuration.php.
const XML_PATH_MANAGE_STOCK = 'cataloginventory/item_options/manage_stock' |
Manage stock config path
Definition at line 72 of file Configuration.php.
const XML_PATH_MAX_SALE_QTY = 'cataloginventory/item_options/max_sale_qty' |
Max sale qty config path
Definition at line 57 of file Configuration.php.
const XML_PATH_MIN_QTY = 'cataloginventory/item_options/min_qty' |
Max qty config path
Definition at line 47 of file Configuration.php.
const XML_PATH_MIN_SALE_QTY = 'cataloginventory/item_options/min_sale_qty' |
Min sale qty config path
Definition at line 52 of file Configuration.php.
const XML_PATH_NOTIFY_STOCK_QTY = 'cataloginventory/item_options/notify_stock_qty' |
Notify stock config path
Definition at line 67 of file Configuration.php.
const XML_PATH_QTY_INCREMENTS = 'cataloginventory/item_options/qty_increments' |
Qty increments config path
Definition at line 82 of file Configuration.php.
const XML_PATH_SHOW_OUT_OF_STOCK = 'cataloginventory/options/show_out_of_stock' |
Show out of stock config path
Definition at line 87 of file Configuration.php.
const XML_PATH_STOCK_THRESHOLD_QTY = 'cataloginventory/options/stock_threshold_qty' |
Threshold qty config path
Definition at line 102 of file Configuration.php.