Posted By

rc2789 on 09/30/11


Tagged

textmate


Versions (?)

Magento - if category


 / Published in: PHP
 

  1. <?php if (Mage::registry('current_category') && Mage::registry('current_category')->getId() == 7) : ?>
  2. <!-- if category # 7 - show this-->
  3. <?php else : ?>
  4. <!-- if not then show this-->
  5. <?php endif; ?>

Report this snippet  

You need to login to post a comment.