Documentation

Update

Description and parameters

int CCatalogStore::Update(
   int Id, 
   array arFields
);

Updates warehouse parameters with ID, according to arFields array details. Static method.

Call parameters

Parameter Description
ID Warehouse ID for updating.
arFieldsAssociative with warehouse parameters, with keys as parameter names and corresponding values. Permissible keys:
  • TITLE - warehouse name;
  • ACTIVE - warehouse active ('Y' - yes, 'N' - not active);
  • ADDRESS - warehouse address;
  • DESCRIPTION - warehouse description;
  • GPS_N - GPS coordinate (latitude);
  • GPS_S - GPS coordinate (longitude);
  • IMAGE_ID - warehouse image ID;
  • PHONE - telephone;
  • SCHEDULE - warehouse schedule;
  • XML_ID - warehouse XML_ID for 1C export\import;
  • ISSUING_CENTER - Pick-up location (Y/N);
  • SHIPPING_CENTER - Shipping center (Y/N).
  • SITE_ID - site.

Returned value

Returns ID for updated warehouse on success, otherwise - false.

Examples

$arFields = Array(
		"TITLE" => $TITLE,
		"ACTIVE" => $ACTIVE,
		"ADDRESS" => $ADDRESS,
		"DESCRIPTION" => $DESCRIPTION,
		"IMAGE_ID" => $fid,
		"GPS_N" => $GPS_N,
		"GPS_S" => $GPS_S,
		"PHONE" => $PHONE,
		"SCHEDULE" => $SCHEDULE,
		"XML_ID" => $XML_ID,
	);
	
	$ID = CCatalogStore::Update(1, $arFields);


© «Bitrix24», 2001-2024
Up