Is there a way to restrict catalog / product page based on user group (for example, if my user is in the group "A", he will see only product for the group "A") ?

Ideally by avoiding paid extension if anyone know reply me.

1 Answer 1


Without an proper extension, i belive that the answer wouldn't be too short. Perhaps, i've already done many things using string position on php (reference here) with javascript too. Let me give an example, here is the code on my Magento 1.7 that shows the menu items:

 <?php if ($categories): ?>
            <?php echo $this->renderCategoriesMenuHtml(TRUE, 0, 'level-top'); ?>
        <?php endif; ?>

You could do a string verification, like:

<?php If { the URL contains url string of cat. A or B, ?> <style>.levelx .nav-X { display: none; } </style> <?php } ?>
  • I should be more specific : it's on the catalog, not on the menu Commented Oct 4, 2018 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.