Category tree

ps_get_category_tree

Read-onlyContent & SEO and Catalog · writes right awayWorks in TellMyShop FreeVisible right after install

Shows how your categories are arranged.

TellMyShop Free: Yes. This tool is in TellMyShop Free, which costs nothing. It only reads your store and never changes anything.

Ask Claude

„Show me the category tree and mark empty categories and ones without a description.”

Example answer

Home (2) > Living room (10, 84 products) > Sofas (12, 31 products, no meta description) > Corner sofas (13, 0 products, inactive) ...

Technical details

Category tree with ID, name, active status, number of active products (direct and in the whole subtree, without double counting) and flags for missing description, meta title and meta description. Use it to find a category ID by name, review the structure, or find empty categories and categories without a description.

Parameters

NameTypeRequiredDescription
root_idintegernoStart category (default the shop's root category).
max_depthintegernoDepth below root_id (default 4). Range 1 to 10.
include_inactivebooleannoShow inactive categories (default yes).
langstringnoISO language code, for example pl or en. Defaults to the shop's default language.
shop_idintegernoShop ID in a multistore installation. Defaults to the shop in the connector address. IDs are listed by ps_get_shop_info.

Limits

Max 300 nodes per call. In bigger catalogues narrow it with root_id.

Related tools

Use cases with this tool

Last updated: 2026-10-11