Documentation

catalog.product.sku.update

Scope: catalog Permissions: all

catalog.product.sku.update(id, fields)

Method updates SKU product fields.

Parameters

ParameterType Описание
idinteger SKU product ID.
fieldsobject 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