MageParts

Skip to Main Content »

User Guides

My Cart

You have no items in your shopping cart.

Community Poll

What do you think of our prices?
 
 
 
 

Newsletter

Newsletter
 

Customer Restrictions   -   User Guide

Chapter 1: Configuration options for Customer Restrictions

This chapter will cover how to configure Customer Restrictions in Magento.

1.1Configuration overview

The Customer Restrictions configuration is accessible from the top menu System → Configuration on the tab MageParts → Customer Restrictions.

Config overview
  1. Navigate to System → Configuration in the top menu.
  2. Click on Customer Restrictions tab in the MageParts section of the left-hand menu.

1.2General Settings

General Settings
OptionDescription
EnabledThis controls wether or not the Customer Restrictions extension is enabled

1.3Shopping Cart Settings

Shopping Cart Settings
OptionDescription
Accessible only to logged in customersThis controls wether or not the shopping cart should only be accessible to logged in customers. This setting will restrict the shopping area, hide all "Add to Cart" buttons, and hide the sidebar mini cart from customers whom are not logged in and aren't placed in the proper customer group(s).
Allowed Customer GroupsThis setting controls which customer groups have access to the shopping cart. You can assign customer groups by using their ids (see chapter 2.1 for more information regarding where you can view the ids of your customer groups). You can assign more than one (1) customer group by separating each id with a comma (,).

Example for single customer group: 2
Only allow customers from the group with the id 2.

Example for multiple customer groups: 1,5,3,7
Only allow customers from the groups with id 1,5,3 or 7.
Access denied messageThis is the error message which will be displayed to customers whom are not permitted to access the shopping cart. This message will only be displayed on the shopping cart page.

1.4Checkout Settings

Checkout Settings
OptionDescription
Accessible only to logged in customersThis controls wether or not the checkout should only be accessible to logged in customers.
Allowed Customer GroupsThis setting controls which customer groups have access to the checkout. You can assign customer groups by using their ids (see chapter 2.1 for more information regarding where you can view the ids of your customer groups). You can assign more than one (1) customer group by separating each id with a comma (,).

Example for single customer group: 2
Only allow customers from the group with the id 2.

Example for multiple customer groups: 1,5,3,7
Only allow customers from the groups with id 1,5,3 or 7.
Access denied messageThis is the error message which will be displayed to customers whom are not permitted to access the checkout. This message will only be displayed on the checkout page.

1.5Catalog Settings

Catalog Settings
OptionDescription
Accessible only to logged in customersThis controls wether or not the catalog should only be accessible to logged in customers. This setting will restrict all categories and search results (both simple and advanced).
Allowed Customer GroupsThis setting controls which customer groups have access to the catalog. You can assign customer groups by using their ids (see chapter 2.1 for more information regarding where you can view the ids of your customer groups). You can assign more than one (1) customer group by separating each id with a comma (,).

Example for single customer group: 2
Only allow customers from the group with the id 2.

Example for multiple customer groups: 1,5,3,7
Only allow customers from the groups with id 1,5,3 or 7.
Access denied messageThis is the error message which will be displayed to customers whom are not permitted to access the catalog. This message will only be displayed on the category pages and the search result pages (both from simple and advanced searches).

1.6Price Settings

Price Settings
OptionDescription
Accessible only to logged in customersThis controls wether or not the prices should only be visible to logged in customers. This setting will hide all prices in the catalog listning (both on category pages, and in the search results) and on the product details pages.
Allowed Customer GroupsThis setting controls which customer groups are able to see the prices on your store frontend. You can assign customer groups by using their ids (see chapter 2.1 for more information regarding where you can view the ids of your customer groups). You can assign more than one (1) customer group by separating each id with a comma (,).

Example for single customer group: 2
Only allow customers from the group with the id 2.

Example for multiple customer groups: 1,5,3,7
Only allow customers from the groups with id 1,5,3 or 7.
Access denied messageThis is the error message which will be displayed to customers whom are not permitted to see your prices. This message will be displayed on the category pages, the search result pages (both from simple and advanced searches) and on product details pages.

1.7Product Details Settings

Product Details Settings
OptionDescription
Accessible only to logged in customersThis controls wether or not product details should only be accessible to logged in customers.
Allowed Customer GroupsThis setting controls which customer groups have access to product details pages. You can assign customer groups by using their ids (see chapter 2.1 for more information regarding where you can view the ids of your customer groups). You can assign more than one (1) customer group by separating each id with a comma (,).

Example for single customer group: 2
Only allow customers from the group with the id 2.

Example for multiple customer groups: 1,5,3,7
Only allow customers from the groups with id 1,5,3 or 7.
Access denied messageThis is the error message which will be displayed to customers whom are not permitted to access the product details pages. This message will only be displayed on the product details pages.

Chapter 2: Etc.

This chapter contains information regarding customer groups and styling of the Customer Restrictions extension.

2.1Where to view customer group ID's

The Customer Groups section is accessible from the top menu Customers → Customer Groups.

Customer Groups
  1. Navigate to Customers → Customer Groups in the top menu.
  2. The ID of each group is visible on the far left of each row in the grid.

2.2How to style the denied access messages

The denied access messages can be styled in any way you like, using CSS and images. By default, we have choosen to use Magento's style for error messages. If you like to change the appearance of the messages, please follow the instructions below.

First you will need to navigate through Magento's directory structure to where the CSS files and images are located:

  • skin
    • frontend
      • default
        • default
          • mageparts
            • restrictcustomer

The stylesheet contaning the CSS used for this extension (custom.css) is located within the css directory.

If you are using Magento version 1.0, you will no doubt have noticed that the stylesheet isn't loaded properly. This is because of a bug in Magento version 1.0, and to resolve it, we advice you to copy the contents of custom.css, and place it in a custom made stylesheet or skin/frontend/default/default/css/custom.css.

Please note that we suggest that you override this stylesheet with a custom made one, so that your modifications aren't overwritten when an updated version of the extension is released.