Class Msrp
Definition at line 16 of file Msrp.php.
◆ __construct()
- Parameters
-
LocatorInterface | $locator | |
MsrpConfig | $msrpConfig | |
ArrayManager | $arrayManager | |
Definition at line 53 of file Msrp.php.
◆ customizeMsrp()
Customize msrp field
- Returns
- $this
Definition at line 89 of file Msrp.php.
91 $msrpPath = $this->arrayManager->findPath(static::FIELD_MSRP, $this->meta,
null,
'children');
94 if ($this->msrpConfig->isEnabled()) {
95 $this->meta = $this->arrayManager->merge(
96 $msrpPath .
'/arguments/data/config',
99 'addbefore' => $this->locator->getStore()->getBaseCurrency()->getCurrencySymbol(),
100 'validation' => [
'validate-zero-or-greater' =>
true],
104 $this->meta = $this->arrayManager->remove(
105 $this->arrayManager->slicePath($msrpPath, 0, -2),
◆ customizeMsrpDisplayActualPrice()
customizeMsrpDisplayActualPrice |
( |
| ) |
|
|
protected |
Customize msrp display actual price field
- Returns
- $this
Definition at line 119 of file Msrp.php.
121 $msrpDisplayPath = $this->arrayManager->findPath(
122 static::FIELD_MSRP_DISPLAY_ACTUAL_PRICE,
128 if ($msrpDisplayPath) {
129 if (!$this->msrpConfig->isEnabled()) {
130 $this->meta = $this->arrayManager->remove(
131 $this->arrayManager->slicePath($msrpDisplayPath, 0, -2),
◆ modifyData()
modifyData |
( |
array |
$data | ) |
|
◆ modifyMeta()
modifyMeta |
( |
array |
$meta | ) |
|
◆ $arrayManager
◆ $data
◆ $locator
◆ $meta
◆ $msrpConfig
◆ FIELD_MSRP
const FIELD_MSRP = 'msrp' |
#+ Field names
Definition at line 21 of file Msrp.php.
◆ FIELD_MSRP_DISPLAY_ACTUAL_PRICE
const FIELD_MSRP_DISPLAY_ACTUAL_PRICE = 'msrp_display_actual_price_type' |
The documentation for this class was generated from the following file:
- vendor/magento/module-msrp/Ui/DataProvider/Product/Form/Modifier/Msrp.php