CPrice::ReCountFromBase(
array &arFields,
bool &boolBase
);
Method allows recalculating price with surcharge on basis of the base price.
Method parameters
Parameter | Description |
arFields | Associative array with price parameters. Passed via link, array contents can change after calling the method. Permissible keys:
- PRODUCT_ID - product ID;
- CATALOG_GROUP_ID - base price type ID;
- EXTRA_ID - surcharge ID (key is zeroed out in case failed price recalculation);
- PRICE - new price value (key appears in array in case of successful price recalculation);
- CURRENCY - new price currency (key appears in array in case successful price recalculation);
- QUANTITY_FROM - starting amount of product to apply the price. Specified using extended price editing mode.
- QUANTITY_TO - amount of product when price no longer applies. Specified using extended price editing mode.
|
boolBase | Passed via link. Set as true, if passing base type price, otherwise - false. |
Returned value
None.