agentleFS
bxmaximumbxmaximum/bitrix-framework-skills/skills/bitrix-catalog/SKILL.md

bitrix-catalog

Skill73 starsChanged 26 days agoMITView on GitHub

Торговый каталог: товары ProductTable, предложения SKU, цены Model\Price, склады и остатки. Используй при записи товаров и цен, чтении остатков и интеграции витрины.

The file

Files
SKILL.md

Торговый каталог (catalog)

Baseline: main 23.0+ · Verified: catalog 26.500.0, main 26.1000.0

Перед PHP-кодом прочитай bitrix-framework, если ещё не читал его в этой задаче.

ID товара совпадает с ID элемента инфоблока. Загрузи iblock + catalog. Корзина, заказы, оплата: bitrix-sale; элементы и свойства: bitrix-iblocks.

ЗадачаЧитать
Создание каталога, товары, типы и предложения SKUrules/products.md
Типы цен, запись цен, НДС, права RESTrules/prices.md
Остатки, складские документы, фильтр доступных складовrules/stores.md

Открой только нужный файл правил.

Общие правила

  • Записывай товары через Model\Product, цены через Model\Price; прямой ORM обходит пересчёты.
  • Проверяй каждый Result; базовый тип цены находи через GroupTable::getBasePriceTypeId().
  • В корзину передавай ID предложения, не родителя SKU.
  • Для ограниченного пользователя применяй фильтр складских прав, читай пакетами.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.