Set Section Settings for catalog.productPropertySection.set
We are still updating this page
Some data may be missing here — we will complete it shortly.
Scope:
catalogWho can execute the method: any user
The method sets (creates or updates) section settings for product properties or variations.
|
Parameter |
Description |
|
propertyId |
Identifier of the product or variation property. |
|
fields |
An array containing the following fields:
|
Example
JS
PHP
BX24.js
try
{
const response = await $b24.callMethod(
'catalog.productPropertySection.set',
{
propertyId: 128,
fields: {
displayType: "F",
displayExpanded: "Y",
filterHint: "Product Size"
}
}
);
const result = response.getData().result;
if(result.error())
{
console.error(result.error().ex);
}
else
{
console.log(result);
}
}
catch(error)
{
console.error('Error:', error);
}
try {
$response = $b24Service
->core
->call(
'catalog.productPropertySection.set',
[
'propertyId' => 128,
'fields' => [
'displayType' => "F",
'displayExpanded' => "Y",
'filterHint' => "Product Size"
]
]
);
$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 setting product property section: ' . $e->getMessage();
}
BX24.callMethod(
'catalog.productPropertySection.set',
{
propertyId: 128,
fields: {
displayType: "F",
displayExpanded: "Y",
filterHint: "Product Size"
}
},
function(result)
{
if(result.error())
console.error(result.error().ex);
else
console.log(result.data());
}
);
How to Use Examples in Documentation
Copied