Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
get (array $skus) | |
update (array $prices) | |
delete (array $prices) | |
Special prices resource model. @api
Definition at line 14 of file SpecialPriceInterface.php.
delete | ( | array | $prices | ) |
Delete product special prices.
array | $prices | $prices = [ 'entity_id' => (int) Entity identified or entity link field. Required. 'attribute_id' => (int) Special price attribute Id. Required. 'store_id' => (int) Store Id. Required. 'value' => (float) Special price value. Required. 'price_from' => (string) Special price from date value in Y-m-d H:i:s format in UTC. Optional. 'price_to' => (string) Special price to date value in Y-m-d H:i:s format in UTC. Optional. ]; |
Implemented in SpecialPrice.
get | ( | array | $skus | ) |
Get product special prices by SKUs.
string[] | $skus Array containing SKUs $skus = [ 'sku value 1', 'sku value 2' ]; |
Implemented in SpecialPrice.
update | ( | array | $prices | ) |
Update product special prices.
array | $prices | $prices = [ 'entity_id' => (int) Entity identified or entity link field. Required. 'attribute_id' => (int) Special price attribute Id. Required. 'store_id' => (int) Store Id. Required. 'value' => (float) Special price value. Required. 'price_from' => (string) Special price from date value in Y-m-d H:i:s format in UTC. Optional. 'price_to' => (string) Special price to date value in Y-m-d H:i:s format in UTC. Optional. ]; |