Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-catalog-inventory
Model
Source
Backorders.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\CatalogInventory\Model\Source
;
7
17
class
Backorders
implements
\Magento\Framework\Option\ArrayInterface
18
{
22
public
function
toOptionArray
()
23
{
24
return
[
25
[
'value'
=>
\Magento\CatalogInventory\Model\Stock::BACKORDERS_NO
,
'label'
=>
__
(
'No Backorders'
)],
26
[
27
'value'
=>
\Magento\CatalogInventory\Model\Stock::BACKORDERS_YES_NONOTIFY
,
28
'label'
=>
__
(
'Allow Qty Below 0'
)
29
],
30
[
31
'value'
=>
\Magento\CatalogInventory\Model\Stock::BACKORDERS_YES_NOTIFY
,
32
'label'
=>
__
(
'Allow Qty Below 0 and Notify Customer'
)
33
]
34
];
35
}
36
}
Magento\CatalogInventory\Model\Source\Backorders
Definition:
Backorders.php:17
Magento\CatalogInventory\Model\Source\Backorders\toOptionArray
toOptionArray()
Definition:
Backorders.php:22
__
__()
Definition:
__.php:13
Magento\Framework\Option\ArrayInterface
Definition:
ArrayInterface.php:11
Magento\CatalogInventory\Model\Stock\BACKORDERS_NO
const BACKORDERS_NO
Definition:
Stock.php:37
Magento\CatalogInventory\Model\Stock\BACKORDERS_YES_NOTIFY
const BACKORDERS_YES_NOTIFY
Definition:
Stock.php:41
Magento\CatalogInventory\Model\Stock\BACKORDERS_YES_NONOTIFY
const BACKORDERS_YES_NONOTIFY
Definition:
Stock.php:39
Magento\CatalogInventory\Model\Source
Definition:
Backorders.php:6