P
P
Pavel Sidorov2021-07-29 11:41:06
1C-Bitrix
Pavel Sidorov, 2021-07-29 11:41:06

How to get SKU properties via Bitrix API?

I see the dock
https://dev.1c-bitrix.ru/api_help/catalog/classes/...

I do

$arSKU = CCatalogSKU::getOffersList(
                  $productID,
                  2,
                  $skuFilter = array('ACTIVE' => 'Y'),
                  $fields = array('ID', 'NAME', 'CODE'),
                  $propertyFilter = array("CODE"=>"SIZES_CLOTHES")
                );


where
$productID - product id
$propertyFilter = array("CODE"=>"SIZES_CLOTHES") - sku property

output

echo'<pre>';
                var_dump($arSKU);
                echo'</pre>';


I see sku, I don't see sku properties.
what is the riddle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
PetrPo, 2021-07-29
@pavel__sidorov

"CODE"=>["SIZES_CLOTHES"]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question