This Magento extension enables you to hide categories and products from customers depending on their customer group. (It is a rewrite of the extension Netzarbeiter_GroupsCatalog for Magento 1.6 and newer.)
- version: check the config.xml
- extension key: Netzarbeiter_GroupsCatalog2
- extension on Magento Connect
- Magento Connect 1.0 extension key: - none -
- Magento Connect 2.0 extension key:
- extension on GitHub
- direct download link
This Magento extension enables you to hide categories and products from customers depending on their customer group. It is a rewrite of the extension Netzarbeiter_GroupsCatalog for Magento 1.6 and newer.
If you use Magento 1.5 or 1.4 please refer to the older extension which is linked to from this modules page on Magento Connect. Older versions of Magento are no longer supported (the old module might work, though, but I don't test at all).
This rewrite not only cleans up the code base, it also adds several new features and improvements:
- Configurable if you want to hide everything and select products and categories to show or vica versa.
- Use of an index to support of an unlimited number of customer groups (without DB table hacks).
- Faster frontend usage, especially noticeable with large catalogs and complex settings.
- Fully configurable on a store view level.
- Should work with Magento using Oracel and MSSQL as well as MySQL (I can't test this, though).
You can specify a default visibility setting for all categories and products under System - Configuration - Netzarbeiter Extensions - Groups Catalog 2
There you can also choose to disable the extension (on a store view level).
The default after installation is no categories or products are hidden. You can override the default settings for every product and category in the Product Management and Category Management pages.
If you use some non-standard mechanism or import for products and categories, it might be necessary to rebuild the GroupsCatalog index. You can do so by visiting the Page System - Index Management. There check the checkboxes beside the indexes "GroupsCatalog Products" and "GroupsCatalog Categories", select the "Reindex Data" action and click the "Submit" button.
- Magento >= 1.6
If you are using the Magento compiler, disable compilation before the installation, and after the module is installed, you need to run the compiler again.
- Install the extension via Magento Connect with the key shown above or copy all the files into your document root.
- Clear the cache, logout from the admin panel and then login again.
- Configure and activate the extension under System - Configuration - Netzarbeiter Extensions - Groups Catalog 2
- Go to the "Manage Indexes" page and rebuild the two GroupsCatalog indexs. Without this step all products will be hidden on the frontend!
To upgrade, first create a backup (file system and database). Then install the GroupsCatalog 2 module, and visit the admin page at System - Tools - Groups Catalog 2 Migration There you will find a step-by-step wizard assisting you to migrate all settings for the system configuration, all products and all categories.
To uninstall this extension you need to run the following SQL after removing the extension files:
DELETE FROM `eav_attribute` WHERE attribute_code = 'groupscatalog2_groups'; DELETE FROM `core_resource` WHERE code = 'netzarbeiter_groupscatalog2_setup'; DELETE FROM `index_process` WHERE indexer_code = 'groupscatalog2_product'; DELETE FROM `index_process` WHERE indexer_code = 'groupscatalog2_category'; DROP TABLE IF EXISTS `groupscatalog_product_idx`; DROP TABLE IF EXISTS `groupscatalog_category_idx`;
If you have any issues with this extension, open an issue on GitHub (see URL above)
Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.
(c) 2014 Vinai Kopp