Documentation

CCatalogGroup

Class methods

Method DescriptionAvailable from version
[link=90215]Add[/link] Adds a new price type. Simultaneously, saves all language-dependant parameters for type, as well as parameters that does not depend on language. Also, there is an option to indicate user groups with members having permissions to view and purchase products with prices of this type.
[link=744316]CheckFields[/link] Method checks parameters, passed to methods [link=90215]CCatalogGroup::Add[/link] and [link=90221]CCatalogGroup::Update[/link].
[link=90216]Delete[/link] Method deletes price type with ID. Prices of this type are deleted as well. Base price type cannot be deleted.
[link=90217]GetBaseGroup[/link] Method returns ID code and an internal name for base price type. Method's result is cached and a repeated call of this method within a single page won't cause any additional database queries.
[link=90218]GetByID[/link] Method returns price type parameters with ID, including language-dependant parameters for language ('lang'). Returns price type parameters with ID, including language-dependant parameters for language ('lang').
[link=90219]GetGroupsList[/link] Method returns entries from table containing bindings between price types and site user groups by arFilter.
[link=744336]GetLangList[/link] Method returns language-dependant price type names.
[link=90220]GetList[/link] Method returns retrieved entries from catalog price types according to its parameters.
[link=90221]Update[/link] Method updates price type parameters with ID to values from arFields array. Saves both language-dependant parameters of type and parameters that doesn't depend on language. Also, there is an option to specify user groups with members to view and purchase products with prices of this type.


© «Bitrix24», 2001-2024
Up