sale.basketitem.update
sale.basketitem.update(id, fields)
The method updates fields of shopping cart item.
When successful, returns shopping cart resource in response body.
Parameters
Parameter | Type | Description |
---|---|---|
id | string | Number of an item in shopping cart. |
fields | object | Fields, corresponding to available list of getFields. |
Examples
BX24.callMethod( 'sale.basketitem.update', { id: 101, fields: { quantity: 1, productId: 61 } }, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
© «Bitrix24», 2001-2024