Magento 2 Personal Customer Discount Manual¶

Requirements and Installation¶
Personal Customer Discount supports both Community and Enterprise edition of Magento starting from version 2.2. The current version of Magento installed on your website can be found in the lower right corner of any backend page.
Personal Customer Discount extension has 2 separate ways of installation: via Composer or by copying the code.
Installation Via Composer¶
-
Create a folder anywhere on your server (preferably not in the Magento installation directory). Put the zip archive into this folder.
-
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.
-
Add the folder with the extension's archive as a repository. For this, run the Composer command:
sh composer config repositories.mageworx artifact {/ABSOLUTE/PATH/TO/FOLDER}like
sh composer config repositories.mageworx artifact /mageworx/extensions/zipThis command will add these lines to your
composer.jsonfilejson "mageworx": { "type": "artifact", "url": "/mageworx/extensions/zip" } -
Perform the command:
composer require mageworx/module-personalpromotion -
Clear the compiled code and the cache:
sh php bin/magento setup:upgrade php bin/magento cache:flush php bin/magento setup:static-content:deploy -
To update the extension via composer perform the command:
composer update mageworx/module-personalpromotion
Installation by copying the code¶
-
Download the extension's package from your customer account, unzip it.
-
Use any SSH client to connect to your server. Bear in mind that the user should write permissions to this folder and its subfolders.
-
Upload all the files and folders from the extension's package to the root Magento folder.
-
Via SSH, navigate to the root Magento folder and perform the command:
php bin/magento module:enable MageWorx_PersonalPromotion -
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 tab ⟶ Personal Promotion.

The Enable Personal Promotions In Cart Price Rules setting (in the MageWorx Personal Promotion group) provides the possibility to temporarily disable/re-enable the extension functionality directly from the backend. It is set to No by default, so set it to Yes to make the cart price rules apply only to the customers selected in the Customers section.
Personal Customer Discount Configuration¶
The extension extends the default cart price rules configuration.
To edit the cart price rule, the store owner should go to MARKETING ⟶ Promotions ⟶ Cart Price Rules.

From here, the store owner can either Add New Rule or Edit the rules that have been created before. Please note that during the initial setup this grid may be empty.
Our extension adds the special Customers section to the rule page.

This section shows the customers grid with the Customer ID, Name, Customer Email, Country and Website columns and the default possibility to sort out the values and reset the filters. By default, the grid shows only the customers already selected for the rule. The customer grid supports the multiselect possibility to choose several customers simultaneously. Once the customer(-s) are selected and the configuration is saved, the cart price rule will be triggered only for the targeted shopper(-s).
Note: if no customers are selected, the cart price rule will work for anyone
Historical Conditions¶
The extension also adds the Historical Conditions group to the Conditions section of the cart price rule. It lets you target customers by what they have bought before:
- Purchased amount — the total amount the customer has been invoiced, minus refunds, in the current store view. Use it to give a discount, for example, to customers who have spent more than a certain sum.
- Purchased SKU(s) — the SKUs the customer has bought before (invoiced and not canceled or refunded) in the current store view. The SKUs can be typed in or picked with the Open Chooser button.
Note: these conditions apply to logged-in customers only. For guests, they are never met.
Personal Customer Discount Features in Magento 2 Enterprise¶
Magento 2 Eneterprise edition provides the possibility to add scheduled updates. Cart price rules can be applied on schedule as part of some campaign.

To add the new schedule update, click the Schedule New Update button.
Our extension provides the same features for the scheduled updates as well.

The functionality is the same as described previously in this user guide.
Once the schedule update has been created, the store owner should click the Save button.
The upcoming update will be shown in the scheduler.

Got Questions?¶
Need help with the extensions? Feel free 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.
