I'm trying to display a message just on a certain category page in magento?
I know how to do this on a product page so like:
<?php
if (in_array(415, $_product->getCategoryIds())) {?>
<span style="font-weight:bold;color:#69a740;padding:0 5px;font-size:14px;">Text</span>
<?php } ?>
But not sure how to do this on a category page?
Best Answer
You can try this: