• Stars
    star
    139
  • Rank 262,954 (Top 6 %)
  • Language
    PHP
  • Created over 13 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Magento extension to enable you to hide categories and products from customers depending on their customer group. This is a Magento 1.6 and newer compatible version of the Netzarbeiter Customer Groups Catalog extension.

This Magento 1 extension is orphaned, unsupported and no longer maintained.

If you use it, you are effectively adopting the code for your own project.

Groups Catalog 2

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.)

I'm not aware of a rewrite of this extension for Magento 2.

Facts

Description

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 DO NOT use this extension.

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).

Usage

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.

Compatibility

  • Magento >= 1.6
  • Last confirmed compatible version: Magento 1.9.4 (PHP 7.3.19) on 2020-08-12 (mage-lts 19.4.5)

Installation Instructions

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.

  1. Install the extension via Magento Connect with the key shown above or copy all the files into your document root.
  2. Clear the cache, logout from the admin panel and then login again.
  3. Configure and activate the extension under System - Configuration - Netzarbeiter Extensions - Groups Catalog 2
  4. Go to the "Manage Indexes" page and rebuild the two GroupsCatalog indexs. Without this step all products will be hidden on the frontend!
  5. If you use the Magento compiler tool, recompile after installation

Uninstallation

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`;

Payment Service Provider Notification Requests

Many payment service providers notify Magento about a payment success or failure by sending a request from their server to a Magento URL. In those cases, the GroupsCatalog2 extension might interfere with that process since the PSP request might be running with a different Customer Group (e.g. General) then the customer who placed the order.
The right way to handle such cases is to disable the GroupsCatalog2 extension on the routes of such a payment module.
This can be achieved by adding the modules route name to the config section global/netzarbeiter_groupscatalog2/disabled_on_routes.
For example:

    <global>
        <netzarbeiter_groupscatalog2>
            <disabled_on_routes>
                <paypal/>
                <authorizenet/>
            </disabled_on_routes>
        </netzarbeiter_groupscatalog2>
    </global>

The PSP route name can be looked up within the payment modules etc/config.xml file. On requests to routes listed under that node the extension will be inactive.

Upgrade from Magento 1.5

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.

Support

If you have any issues with this extension, open an issue on GitHub (see URL above)

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Vinai Kopp
http://www.netzarbeiter.com
@VinaiKopp

Licence

OSL - Open Software Licence 3.0

Copyright

(c) 2014-2020 Vinai Kopp

More Repositories

1

compressed-magento-sample-data

A highly compressed version of the magento 1.9 sample data and a script to create it.
Shell
121
star
2

customer-activation

Magento extension which makes it impossible for a customer to log in until the account has been activated by the administrator.
PHP
120
star
3

module-current-product-example

Example module how to get the current product on a product detail page.
PHP
81
star
4

nicer-image-names

Magento extension to build catalog image file names from product attributes so they have neat descriptive names.
PHP
77
star
5

phpstorm-magento-mapper

This extension is for Magento Developers using PHPStorm. It generates a class map for autocompletion.
PHP
63
star
6

VinaiKopp_StoreUrlRewrites

Fix for Magentos` url rewrite matching of store level url_key's.
PHP
42
star
7

loginonlycatalog

Magento extension that forces customers to log in in order to see products and categories.
PHP
36
star
8

VinaiKopp_JsMessages

This Magento extensions aims to be a drop in replacement for the Magento core/message block, causing session splash messages to be rendered client side in the browser using JavaScript.
PHP
33
star
9

VinaiKopp_ProductCategories

Display a list of all categories the current product is associated with and their parent categories. I hear thats good for SEO somehow :)
PHP
31
star
10

VinaiKopp_Api2SessionAuthAdapter

Session Auth Adapter for Magento REST Interaction from the same host.
PHP
28
star
11

example-module-breakout

Simple breakout game using UiComponents to showcase view state management.
JavaScript
28
star
12

module-customer-password-command

Set a customer password with bin/magento.
PHP
25
star
13

VinaiKopp-FavoriteProducts-Example

Example Magento 2 module to explore dynamic content on fully cached pages.
PHP
25
star
14

Symlink-Cache

NOT MAINTAINED! Please use https://github.com/colinmollenhour/Cm_Cache_Backend_File instead!
PHP
23
star
15

VinaiKopp_PostCodeFilter

Prohibit customer groups from ordering except for given postcodes
PHP
22
star
16

VinaiKopp_EavOptionSetup

Magento2 extension to easily add EAV attribute options to attributes only if the option doesn't exist yet.
PHP
20
star
17

VinaiKopp_CategoryLink

Magento Module that adds the ability to optionally specify external or internal URL's for categories.
PHP
20
star
18

VinaiKopp_CatalogSetup

This extension contains an extended catalog setup class with additional methods Magento developers might find useful.
PHP
20
star
19

VinaiKopp_ConfigComments

Add comments to system configuration fields.
PHP
19
star
20

VinaiKopp_LoginLog

Magento Extension to track customer login date & time, ip address and user agent. Work in Progress.
PHP
18
star
21

pandocfilters-php

This is a PHP port of the python module for writing pandoc filters found at https://github.com/jgm/pandocfilters
PHP
18
star
22

m2-tech-debt

Magento 2 command to collect technical debt info on modules
PHP
17
star
23

customer-registration-ip

Magento extension to display a customer's IP used during registration.
PHP
14
star
24

VinaiKopp_Api2SessionLogin

This Magento extension is only interesting to developers implementing a webapp running on the same host as the Magento instance.
PHP
13
star
25

MageTitans_ProductStatus

Example Magento 2 module developed during the mini Magento2 workshop during MageTitans 2015 (Manchester)
PHP
12
star
26

module-example-giftitem

Example module for my presentations at MageTestFest.
PHP
9
star
27

example-module-tictactoe

A small module showcasing different ways to handle view state with Magento 2 UiComponents.
JavaScript
9
star
28

attribute-duplicator

Magento extension which eanbles you to duplicate product attributes.
PHP
8
star
29

space48-module-master-mind

Training module to practice testing in the context of Magento 2.
PHP
8
star
30

MM15PL_ProductStatus

Example Magento 2 module developed during the mini-workshop during Meet-Magento 2015
PHP
7
star
31

test-frameworks-mm13de

Test examples used during my presentation at Meet-Magento Germany 2013
PHP
5
star
32

magento-cljs-giftlist

Simple example app to show how ClojureScript can be used in Magento 2.
Clojure
5
star
33

mage-finger

Fingerprint Magento instances to figure out which version is running. This is only the framework, the real tests still need implementing...
JavaScript
3
star
34

module-hyva-metagrid

This module provides a grid listing all Hyva grids defined in a Magento Store.
PHP
3
star
35

module-example-gummypoints

Example module to provide very simple M2 API endpoints.
PHP
2
star
36

magehack-voting

Voting Tool Frontend for Hackathons.
PHP
2
star
37

tmp-training

PHP
1
star
38

magento-module-mysql-mq

Backport of the Magento Open Source 2.3 MySQL Message Queue implementation `magento/module-mysql-mq` to Magento Open Source 2.2.
PHP
1
star