here am using Magento 2.3 here category displaying category with its ID,
How to Hide or Remove these Ids. Can I get help? thank you in advance.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityhere am using Magento 2.3 here category displaying category with its ID,
How to Hide or Remove these Ids. Can I get help? thank you in advance.
Go to
vendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
comment the code
// $result .= ' (ID: ' . $node->getId() . ')';
on the line 422 at function buildNodeName($node)
public function buildNodeName($node)
{
$result = $this->escapeHtml($node->getName());
// $result .= ' (ID: ' . $node->getId() . ')';
if ($this->_withProductCount) {
$result .= ' (' . $node->getProductCount() . ')';
}
return $result;
}
That would get your job done . Let me know if you face any problem .
Happy Coding :)
NOTE : The right approach would be to overwrite this function in own own module but that would be out of scope for this question for such little tweak.