Jump to content

Archived

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

NuDreamer

Display an Include on Subcategory, NOT parent category

Recommended Posts

Hey guys, really hoping someone can help me with this! I have an include that I want displayed on Subcategory pages only. So basically, if category is a parent, do NOT display, if category HAS a parent, display. Make sense? I tried using this...

if ($category_depth == 'nested' && isset($HTTP_GET_VARS['cPath'])) {
  include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING);
}

 

But its not enough, and doesn't work. Does anyone have any ideas how to fix that?

 

Thanks so very much, you guys are all awesome here.

 

Regards

Share this post


Link to post
Share on other sites

×