Documentation
README
Trade Catalog Module
Baseline: main 23.0+. Features newer than baseline are marked Since.
Catalog attaches commerce data to iblock elements. Requires iblock + catalog. Cart/orders live in sale โ see skill bitrix-sale.
\Bitrix\Main\Loader::includeModule('iblock');
\Bitrix\Main\Loader::includeModule('catalog');
Product ID = iblock element ID. Trade row: b_catalog_product (ProductTable). Prices: b_catalog_price (PriceTable). Catalogโiblock link: b_catalog_iblock (CatalogIblockTable / CCatalog).
Linking an Iblock to Catalog
Register the product iblock as a catalog:
\CCatalog::Add([
'IBLOCK_ID' => $productIblockId,
'YANDEX_EXPORT' => 'N',
'SUBSCRIPTION' => 'N',
]);
Read binding via ORM:
This is the opening of the README. Read the full README on GitHub.