Documentation

ReCalculate

CPrice::ReCalculate(
 string TYPE,
 int ID,
 int VAL
);

Method recalculates all product prices or recalculates all prices with specific surcharge ID. Non-static method.

Method parameters

ParameterDescription
TYPE Parameter defines what is passed in ID parameter: product ID or surcharge ID.

In case of EXTRA value (case is important), executes recalculation of all prices with defined surcharge. In any other value executes recalculation of all prices for specific product.
IDProduct ID or surcharge ID.
VALNew percent rate value, if TYPE parameter receives the value EXTRA. Otherwise - new base price, used for surcharge calculations.

Returned value

None.



© «Bitrix24», 2001-2024
Up