Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ProductRepositoryInterface $productRepository, \Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory $priceFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Product\PriceModifier $priceModifier, \Magento\Framework\App\Config\ScopeConfigInterface $config, GroupManagementInterface $groupManagement, GroupRepositoryInterface $groupRepository) | |
add ($sku, $customerGroupId, $price, $qty) | |
remove ($sku, $customerGroupId, $qty) | |
![]() | |
getList ($sku, $customerGroupId) | |
Protected Attributes | |
$productRepository | |
$priceFactory | |
$storeManager | |
$priceModifier | |
$config | |
$groupManagement | |
$groupRepository | |
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 20 of file TierPriceManagement.php.
__construct | ( | ProductRepositoryInterface | $productRepository, |
\Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory | $priceFactory, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Catalog\Model\Product\PriceModifier | $priceModifier, | ||
\Magento\Framework\App\Config\ScopeConfigInterface | $config, | ||
GroupManagementInterface | $groupManagement, | ||
GroupRepositoryInterface | $groupRepository | ||
) |
ProductRepositoryInterface | $productRepository | |
\Magento\Catalog\Api\Data\ProductTierPriceInterfaceFactory | $priceFactory | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
PriceModifier | $priceModifier | |
\Magento\Framework\App\Config\ScopeConfigInterface | $config | |
GroupManagementInterface | $groupManagement | |
GroupRepositoryInterface | $groupRepository |
Definition at line 66 of file TierPriceManagement.php.
add | ( | $sku, | |
$customerGroupId, | |||
$price, | |||
$qty | |||
) |
{Create tier price for product
string | $sku | |
string | $customerGroupId | 'all' can be used to specify 'ALL GROUPS' |
float | $price | |
float | $qty |
Implements ProductTierPriceManagementInterface.
Definition at line 89 of file TierPriceManagement.php.
remove | ( | $sku, | |
$customerGroupId, | |||
$qty | |||
) |
{Remove tier price from product
string | $sku | |
string | $customerGroupId | 'all' can be used to specify 'ALL GROUPS' |
float | $qty |
Implements ProductTierPriceManagementInterface.
Definition at line 153 of file TierPriceManagement.php.
|
protected |
Definition at line 45 of file TierPriceManagement.php.
|
protected |
Definition at line 50 of file TierPriceManagement.php.
|
protected |
Definition at line 55 of file TierPriceManagement.php.
|
protected |
Definition at line 30 of file TierPriceManagement.php.
|
protected |
Definition at line 40 of file TierPriceManagement.php.
|
protected |
Definition at line 25 of file TierPriceManagement.php.
|
protected |
Definition at line 35 of file TierPriceManagement.php.