Magento category childs

MagentoBack from holidays and with a simple task to be completed.

To check if a category as children categories you can use the simple method “getChildren()”, it return a coma separated list of all the categories IDs.
e.g.:

$cat_child_list = $this->getCurrentCategory()->getChildren();

Advertisements

One thought on “Magento category childs

Your opinion is important!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s