Based on a custom category attribute created I want to show a link (right next to the category in drop-down menu), on top navigation. I tried to achieve via render.ptml where the menus are created, but I couldn't get a category id. For parent id i was able to get get id from:

$catname= $child->getId();
$catname = explode('-',"$catname");

How can I do that for all categories?

  • When do you want to show this link ? only in category page or in every page ? – Rajeev K Tomy Apr 18 '16 at 6:36
  • @RajeevKTomy I want to show in top navigation (dropdown ) , on every page (its like buying guide link right next to that category in navigation) – Vishwas Bhatnagar Apr 18 '16 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.