Documentation

catalog.priceType.add

Scope: catalog Permissions: all

catalog.priceType.add(fields)

Method adds price type.

Parameters

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

Examples

BX24.callMethod(
    'catalog.priceType.add', 
	{
        fields: {
			  name: "Wholesale price",
			  base: "N",
			  sort: 10,
			  xmlId: "wholesale"
        }
    },
    function(result) {
        if (result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
    });

© «Bitrix24», 2001-2024
Up