Documentation

catalog.priceTypeGroup.getFields

Scope: catalog Permissions: all

catalog.priceTypeGroup.getFields()

Method returns fields binding price types to customer groups.

Parameters

No parameters.

Examples

BX24.callMethod(
    'catalog.priceTypeGroup.getFields', 
    {}, 
    function(result)
    {
        if(result.error())
            console.error(result.error().ex);
        else
            console.log(result.data());
});

Returned fields

Field DescriptionTypeNote
access Types of added binding:
  • N – permission to view this price type;
  • Y – permission to purchase using this price type.

To add both permissions you need to call method twice, by adding both types of binding in sequence (N and Y).
charRequired fields.
catalogGroupId Price type ID.integerRequired field.
groupId Group ID with bound price.integer Required field.
id Binding ID.integerRead only.


© «Bitrix24», 2001-2024