int CSaleDelivery::Update( int ID, array arFields );
The method Update replaces parameters of the delivery service with the new ones.
Parameter | Description |
---|---|
ID | The ID of the delivery service whose parameters are to be updated. |
arFields | Associated array containing new parameters of the delivery service. In this array, the
keys are the parameter names, and the values are the delivery parameter
values. The following keys are possible:
|
Returns the ID of the updated record on success or false otherwise.
<? $arFields = array( "NAME" => "By courier", "LID" => "en", "PERIOD_FROM" => 1, "PERIOD_TO" => 3, "PERIOD_TYPE" => "D", "WEIGHT_FROM" => 0, "WEIGHT_TO" => 2500, "ORDER_PRICE_FROM" => 0, "ORDER_PRICE_TO" => 10000, "ORDER_CURRENCY" => "EUR", "ACTIVE" => "Y", "PRICE" => 58, "CURRENCY" => "RUR", "SORT" => 100, "DESCRIPTION" => "Delivers within 3 to 10 business days". "after the order acceptance.", "LOCATIONS" => array( array("LOCATION_ID"=>1, "LOCATION_TYPE"=>"L"), array("LOCATION_ID"=>3, "LOCATION_TYPE"=>"G") ) ); if (!CSaleDelivery::Update($ID, $arFields)) echo "Error updating the delivery service"; ?>
© 2001-2005 Bitrix | Bitrix Site Manager |