Documentation

catalog.roundingRule.update

catalog.roundingRule.update(id, fields)

Method for updating fields for price rounding fields.

Parameters

ParameterType Description
idinteger Price rounding rule ID.
fieldsobject Fields, matching to available list of fields.


Examples

BX24.callMethod(
    'catalog.roundingRule.update', 
    {
	  id: 10,
	  fields: {	      
		catalogGroupId: 14,
		price: 1000,
		roundType: 4,
		roundPrecision: 10,
	  }
	}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

© «Bitrix24», 2001-2024
Up