Skip to content

Magento 2 Customer Group Prices Manual

Customer Group Prices

Magento 2 Customer Group Prices allows the store owner to specify distinctive product prices for different customer groups. This opens new opportunities for the store owners to fulfil their needs. One of such business cases is setting different prices for the logged-in and not logged-in customers. With this extension, the store owner can run more targeted marketing, deploy various pricing strategies, engage the customers in certain activities and more. The extension lets the store owner set this type of the price for each group and display it as a regular one, without crossing and mentioning the original product one.

By means of this extension, the price can be specified for every customer group on the product level (all major Magento 2 product types are supported). Due to the great scalability, an unlimited number of products, customers, and customer groups are easily supported.

On the frontend, these prices can be shown not only on the product pages, but on any layered navigation page and on the search results pages as well.

Requirements and Installation

Customer Group Prices supports both Community and Enterprise edition of Magento starting from version 2.1. The current version of Magento installed on your website can be found in the lower right corner of any backend page.

Magento 2 Version

Customer Group Prices extension has 2 separate ways of installation: via Composer or by copying the code.

Installation Via Composer

  1. Create a folder anywhere on your server (preferably not in the Magento installation directory). Put the zip archive into this folder.

  2. Use any SSH client to connect to your server. Navigate to the root Magento folder. Bear in mind that the user should write permissions to this folder and its subfolders.

  3. Add the folder with the extension's archive as a repository. For this, run the Composer command:

    composer config repositories.mageworx artifact {/ABSOLUTE/PATH/TO/FOLDER}
    

    like

    composer config repositories.mageworx artifact /mageworx/extensions/zip
    

    This command will add these lines to your composer.json file

    "mageworx": {
        "type": "artifact",
        "url": "/mageworx/extensions/zip"
    }
    
  4. Perform the command:

    composer require mageworx/module-customergrouppricesmeta
    
  5. Clear the compiled code and the cache:

    php bin/magento setup:upgrade
    php bin/magento cache:flush
    php bin/magento setup:static-content:deploy
    
  6. To update the extension via composer perform the command:

    composer update mageworx/module-customergrouppricesmeta
    

Installation by copying the code

  1. Download the extension's package from your customer account, unzip it.

  2. Use any SSH client to connect to your server. Bear in mind that the user should write permissions to this folder and its subfolders.

  3. Upload all the files and folders from the extension's package to the root Magento folder.

  4. Via SSH, navigate to the root Magento folder and perform the command:

    php bin/magento module:enable MageWorx_CustomerGroupPrices
    
  5. Clear the compiled code and cache:

    php bin/magento setup:upgrade
    php bin/magento cache:flush
    php bin/magento setup:static-content:deploy
    

Extension Configuration

Backend Setup

Log into the Magento Admin panel and go to STORES ⟶ Configuration ⟶ MAGEWORX ⟶ Customer Group Prices.

group prices

The Enabled Customer Group Prices setting provides the possibility to temporary disable/re-enable the extension functionality from the backend.

If the Used Group Price in Catalog Price Rule is enabled, the special prices will be automatically set in any cart/catalog price rules.

Customer Group Price Configuration

The extension extends the default customer groups configuration. It enables the possibility to set fixed/percentage surcharges or discounts for the targeted customer groups. Go to CUSTOMERS ⟶ Customer Groups and click any group or create the new group by hitting the Add New Customer Group button.

group prices

The extension adds two extra settings: Group Price and Price Type.

The Group Price field allows to set the numerical value for the discount or surcharge. The minus sign is used for the discounts while the plus is for the surcharges. The type of these discounts/surcharges is handled by the Price Type setting. It can be either Fixed or Percent.

To give the $10 surcharge to the customers for all the products, the store owner needs to put the +10 in the Group Price field and select the Fixed value in the Price Type setting.

To give the 5% discount, the store owner should put -5 and Percent.

Group Prices on the Product Level

The store owner can specify the group prices on the product level as well. This may be important for the refined, granular product pricing. If the price is specified for the customer group and the product, the product’s price will be shown. To modify the desired group prices, the store owner should go to CATALOG ⟶ Products and select the desired product or create the new one by clicking the Add Product button.

group prices

Click the Advanced Pricing link. The popup will be shown.

group prices

The extension adds the Group Price and Special Group Price. The first one modifies the product’s price, the second one edits the special price. In Magento 2, the special price appears instead of the regular price, followed by a notation that shows the regular one.

group prices

To add the new group price or special group price the store owner should click the Add button. The grid contains the columns that allow to select the desired Website and the Customer group. The Price field allows to set the numerical value for the discount or surcharge. The minus sign is used for the discounts while the plus is for the surcharges. The type of these discounts/surcharges is handled by the Price Type setting. It can be either Fixed or Percent.

When the edits are ready, click the Done button and then Save the product.

Customer Group Prices Import/Export

The extension has the possibility to export the cusotmer group prices and to import them. Log into the Magento Admin panel and go to SYSTEM ⟶ Data Transfer ⟶ Import and Export Customer Group Prices.

File Downloads Sections Configuration

To check the structure of the CSV document, click the Export button or the Download Example CSV.

The structure of the CSV is as follows:

"Product SKU","Website ID","Group Name/ID"," Group Price","Group Special Price"
"24-MB06","1","Wholesale","20","18"
"24-MB06","1","Retailer","-15","-10"
"24-MB01","1","Retailer","-25%","20%"

Each line has only one SKU. The Group Price and Group Special Price share the same logic that we've already described : fixed values, fixed discounts, percent values and percent discounts.

If you have our Magento 1 Customer Group Prices, you can export the data from Magento 1 and then import the CSV file to Magento 2 installation. For this, log into the Magento 1 admin panel and go to System ⟶ Import/Export ⟶ Customer Group Prices ⟶ Export Prices. The Value delimiter should be , and for the Enclose Values In put ".

File Downloads Sections Configuration

It should export 2 files: one for prices, another one - for special prices. Check the exported files on the server. You need to upload the exported CSVs to the corresponding fields in the Magento 2 installation. For the upload of the CSV files, click the Choose File button near the Import Group Price from Magento 1 and Import Special Group Price from Magento 1 , select the CSV files and click Import.

Got Questions?

MageWorx offers FREE lifetime support and updates for any extension developed for Magento. Need help with the extensions? Feel free to submit a ticket from https://www.mageworx.com/support/

MageWorx offers outstanding services developing custom-tailored solutions for Magento platform to attain your eCommerce objectives. Our professional impassioned team provides profound and custom oriented development of your project in a short timeframe.