Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Protected Member Functions | |
_getDuplicateErrorMessage () | |
_getWebsiteCurrencyRates () | |
_getResource () | |
_getAdditionalUniqueFields ($objectArray) | |
getAdditionalFields ($objectArray) | |
_isPriceFixed ($priceObject) | |
validatePrice (array $priceRow) | |
updateValues (array $valuesToUpdate, array $oldValues) | |
![]() | |
isPositiveOrZero ($value) | |
Protected Attributes | |
$metadataPool | |
$_rates | |
$_catalogProductType | |
$_groupManagement | |
![]() | |
$_helper | |
$_storeManager | |
$_currencyFactory | |
$_config | |
$localeFormat | |
![]() | |
$_attribute | |
$_valueId | |
$_valueIds = [] | |
$_table | |
$_entityIdField | |
$_defaultValue = null | |
Catalog product abstract group price backend attribute model
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 19 of file AbstractGroupPrice.php.
__construct | ( | \Magento\Directory\Model\CurrencyFactory | $currencyFactory, |
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Catalog\Helper\Data | $catalogData, | ||
\Magento\Framework\App\Config\ScopeConfigInterface | $config, | ||
\Magento\Framework\Locale\FormatInterface | $localeFormat, | ||
\Magento\Catalog\Model\Product\Type | $catalogProductType, | ||
GroupManagementInterface | $groupManagement, | ||
ScopeOverriddenValue | $scopeOverriddenValue = null |
||
) |
\Magento\Directory\Model\CurrencyFactory | $currencyFactory | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Catalog\Helper\Data | $catalogData | |
\Magento\Framework\App\Config\ScopeConfigInterface | $config | |
\Magento\Framework\Locale\FormatInterface | $localeFormat | |
\Magento\Catalog\Model\Product\Type | $catalogProductType | |
GroupManagementInterface | $groupManagement | |
ScopeOverriddenValue | null | $scopeOverriddenValue |
Definition at line 63 of file AbstractGroupPrice.php.
|
protected |
Get additional unique fields
array | $objectArray |
Definition at line 135 of file AbstractGroupPrice.php.
|
abstractprotected |
Error message when duplicates
@abstract
|
abstractprotected |
Retrieve resource instance
|
protected |
Retrieve websites currency rates and base currency codes
Definition at line 90 of file AbstractGroupPrice.php.
|
protected |
Whether group price value fixed or percent of original price
\Magento\Catalog\Model\Product\Type\Price | $priceObject |
Definition at line 158 of file AbstractGroupPrice.php.
afterLoad | ( | $object | ) |
Assign group prices to product data
\Magento\Catalog\Model\Product | $object |
Implements BackendInterface.
Definition at line 305 of file AbstractGroupPrice.php.
afterSave | ( | $object | ) |
After Save Attribute manipulation
\Magento\Catalog\Model\Product | $object |
Implements BackendInterface.
Definition at line 384 of file AbstractGroupPrice.php.
|
protected |
Get additional fields
array | $objectArray |
Definition at line 147 of file AbstractGroupPrice.php.
getAffectedFields | ( | $object | ) |
Retrieve data for update attribute
\Magento\Catalog\Model\Product | $object |
Definition at line 420 of file AbstractGroupPrice.php.
getResource | ( | ) |
Get resource model instance
Definition at line 441 of file AbstractGroupPrice.php.
preparePriceData | ( | array | $priceData, |
$productTypeId, | |||
$websiteId | |||
) |
Prepare group prices data for website
array | $priceData | |
string | $productTypeId | |
int | $websiteId |
Definition at line 273 of file AbstractGroupPrice.php.
setPriceData | ( | $object, | |
$priceData | |||
) |
Set price data.
\Magento\Catalog\Model\Product | $object | |
array | $priceData |
Definition at line 339 of file AbstractGroupPrice.php.
|
protected |
Update values.
array | $valuesToUpdate | |
array | $oldValues |
Definition at line 396 of file AbstractGroupPrice.php.
validate | ( | $object | ) |
Validate group price data
\Magento\Catalog\Model\Product | $object |
Definition at line 172 of file AbstractGroupPrice.php.
|
protected |
Validate price.
array | $priceRow |
Definition at line 256 of file AbstractGroupPrice.php.
|
protected |
Definition at line 46 of file AbstractGroupPrice.php.
|
protected |
Definition at line 51 of file AbstractGroupPrice.php.
|
protected |
Definition at line 31 of file AbstractGroupPrice.php.
|
protected |
Definition at line 24 of file AbstractGroupPrice.php.