Documentation

ReCountForBase

CPrice::ReCountForBase(
 array &arFields
);

Method allows recalculating product price, specified as surcharge to the base price. This is an internal method, used in methods CPrice::Add (with the second parameter as true) and CPrice::Update (with the third parameter as true).

Method parameters

ParameterDescription
arFields Associative array with price parameters. Passed via link, array contents can change after calling method. Permissible keys:
  • PRODUCT_ID - product ID;
  • CATALOG_GROUP_ID - base price type ID;
  • PRICE - base price value;
  • CURRENCY - base price currency;
  • 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).

Returned value

None.



© «Bitrix24», 2001-2024
Up