catalog.store.update
Scope: catalog Permissions to execute: for all
catalog.store.update(id, fields)
Method for warehouse update.
Returns the updated warehouse ID on success.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | Warehouse ID. |
fields | array | Updated warehouse ID. |
Example
BX24.callMethod( 'catalog.store.update', { id: 42, fields: { 'title': 'Warehouse 1', 'sort': '100', 'active': 'Y', 'issuingCenter': 'Y', 'shippingCenter': 'Y', 'code': 'store_1', 'address': '76th, Lane st.', 'phone': '(555) 555-1234', 'schedule': 'Mon-Fri from 9:00 to 20:00, Sat-Sun from 11:00 to 18:00', 'xmlId' => 'store_1', } }, function(result) { if(result.error()) console.error(result.error()); else console.log(result.data()); } );
$result = CRest::call( 'catalog.store.update', [ 'id' => 42, 'fields' => [ 'title' => 'Warehouse 1', 'sort' => '100', 'active' => 'Y', 'issuingCenter' => 'Y', 'shippingCenter' => 'Y', 'code' => 'store_1', 'address': '76th, Lane st.', 'phone': '(555) 555-1234', 'schedule': 'Mon-Fri from 9:00 to 20:00, Sat-Sun from 11:00 to 18:00', 'xmlId' => 'store_1', ], ] ); echo '<pre>'; print_r($result); echo '</pre>';
© «Bitrix24», 2001-2024