UpdateProductPricesAction implements Action
Update product prices action.
If the price values is null
, they are not processed.
To reset price values, you need to set 0
.
Table of Contents
Interfaces
- Action
- Action with document.
Methods
- __construct() : mixed
- canExecute() : Result
- Checking the possibility of executing an action.
- execute() : Result
- Executing action.
Methods
__construct()
public
__construct(int $productId, float|null $purchasePrice, string|null $purchasePriceCurrency[, float|null $basePrice = null ][, string|null $basePriceCurrency = null ]) : mixed
Parameters
- $productId : int
- $purchasePrice : float|null
- $purchasePriceCurrency : string|null
- $basePrice : float|null = null
- $basePriceCurrency : string|null = null
canExecute()
Checking the possibility of executing an action.
public
canExecute() : Result
Tags
Return values
Resultexecute()
Executing action.
public
execute() : Result