Documentation

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

ParameterType Description
idstring Number of an item in shopping cart.
fieldsobject 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-2022
Up