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
System
Config
Backend
Minqty.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\CatalogInventory\Model\System\Config\Backend
;
8
12
class
Minqty
extends
\Magento\Framework\App\Config\Value
13
{
19
public
function
beforeSave
()
20
{
21
parent::beforeSave();
22
$minQty = (int) $this->getValue() >= 0 ? (int) $this->getValue() : (int) $this->
getOldValue
();
23
$this->setValue((
string
) $minQty);
24
return
$this;
25
}
26
}
Magento\CatalogInventory\Model\System\Config\Backend\Minqty
Definition:
Minqty.php:12
Magento\CatalogInventory\Model\System\Config\Backend\Minqty\beforeSave
beforeSave()
Definition:
Minqty.php:19
Magento\CatalogInventory\Model\System\Config\Backend
Definition:
MinsaleqtyTest.php:7
Magento\Framework\App\Config\Value\getOldValue
getOldValue()
Definition:
Value.php:94