Add Price Type Binding to Customer Group catalog.priceTypeGroup.add
We are still updating this page
Some data may be missing — we will complete it shortly.
Scope:
catalogWho can execute the method: any user
Description
catalog.priceTypeGroup.add(fields)
This method adds a price type binding to a customer group.
Parameters
|
Parameter |
Description |
|
fields |
Fields corresponding to the available list of fields |
Required parameters are marked with *
Examples
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'catalog.priceTypeGroup.add',
{
fields: {
catalogGroupId: 14,
groupId: 16,
access: "Y"
}
}
);
const result = response.getData().result;
console.log(result);
}
catch( error )
{
console.error(error.ex);
}
try {
$response = $b24Service
->core
->call(
'catalog.priceTypeGroup.add',
[
'fields' => [
'catalogGroupId' => 14,
'groupId' => 16,
'access' => "Y",
],
]
);
$result = $response
->getResponseData()
->getResult();
if ($result->error()) {
error_log($result->error()->ex);
} else {
echo 'Success: ' . print_r($result->data(), true);
}
} catch (Throwable $e) {
error_log($e->getMessage());
echo 'Error adding price type group: ' . $e->getMessage();
}
BX24.callMethod(
'catalog.priceTypeGroup.add',
{
fields: {
catalogGroupId: 14,
groupId: 16,
access: "Y"
}
},
function(result) {
if (result.error())
console.error(result.error().ex);
else
console.log(result.data());
}
);
How to Use Examples in Documentation
Copied
Previous
Next