Documentation

catalog.price.add

Scope: catalog Permissions: all

catalog.price.add(fields)

Method adds a product price.

Parameters

ParameterType Description
fieldsobject FIelds, matching to available list of fields.

Examples

BX24.callMethod(
    'catalog.price.add', 
	{
        fields: {
			  catalogGroupId: 1,
			  currency: "USD",
			  price: 2000,
			  producId: 1
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });

© «Bitrix24», 2001-2024