Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

HELP me modify this code snippet =)


Recommended Posts

I want the code below to include the previous 3 parent categories instead of just the current category. (HEADING_TITLE for this example= 'Items in ')


<?php echo HEADING_TITLE . '\'' . $tree[$current_category_id]['name'] . '\''; ?>


so that instead of reading like this:


Items in 'Rings'


it will read like this:


Items in 'Colored Stone Jewelry Emerald Rings'


The previous levels of navigation being 'Emerald' and 'Colored Stone Jewelry' and the current directory (with products in it) being 'Rings'.


I tried:


<?php echo HEADING_TITLE . '\'' . $tree[$parent_category_id]['name'] . $tree[$parent_category_id]['name'] . $tree[$current_category_id]['name'] . '\''; ?>


And that didn't work. Any whizzes out there with a moment to enlighten me?

Quidquid latine dictum sit, profundum viditur.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...