catalog.product.sku.update
Scope: catalog Permissions: all
catalog.product.sku.update(id, fields)
Method updates SKU product fields.
Parameters
Parameter | Type | Описание |
---|---|---|
id | integer | SKU product ID. |
fields | object | Fields, matching to the available list of getFieldsByFilter . |
Examples
BX24.callMethod( 'catalog.product.sku.update', { id: 8, fields: { active: "N", code: "t-shirt2", detailText: "Awesome t-shirt", sort: 350 } }, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
© «Bitrix24», 2001-2024