← All modules

Magento 2 module

Catalog Product Customer Benefit

Reward purchases with follow-up prices: buying a product, optionally with a specific option, gives registered customers a special price or discount on another product.

Benefit rules connect a source product with a target product: a registered customer who buys the source product gets a special price or a discount on the target product, for example a reduced service package after buying a device. The benefit already applies while both products are in the same cart, and it is granted as a lasting personal price once the order is paid.

Features

  • Rules with “Source Product”, optional “Source Product Option” and “Source Product Option Value”, “Target Product”, a fixed “Price” or a “Discount” in percent, “Limit”, “Days After Created At”, customer groups, “API Flag”, “Priority”, website and “Active”.
  • In the cart: when a logged-in customer has the source product (with the required option or value) in the cart, the target product is offered at the benefit price.
  • After the purchase: when the invoice of the order is paid, a personal customer price for the target product is created automatically with the rule’s price or discount, limit and priority.
  • “Days After Created At” limits a rule to customers whose account is younger than the given number of days; other customer date attributes, such as a contract start date, can be used as well.
  • New custom option type “Customer Benefit” (checkbox): shoppers can book the benefit directly on the source product. Its price comes from the rule (the fixed price, or the target product’s price minus the discount). If booked, the follow-up price for the target product is zero, so the target product is prepaid.
  • “API Flag”: a marker passed on with the order through the order API, so connected systems such as an ERP can recognise orders that granted a benefit.

Configuration

Rules are managed under Infrangible > Customer Benefit > Manage. The product edit page also gets a “Customer Benefit” section listing the rules in which the product is the source product. Either a price or a discount must be entered, not both.

Under Stores > Configuration > Infrangible Solutions > Catalog Product Customer Benefit > Customer, “Check” selects additional customer date attributes for “Days After Created At”; the most recent of these dates and the account creation date counts.

Good to know

Benefits are granted to registered customers only, not to guest orders. The module builds on “Catalog Product Customer Price” and “Catalog Product Price Calculation”, which are installed automatically. Personal prices created by a benefit appear in the customer price grid and can be edited there.

Installation

Install the module with Composer in your Magento root directory:

composer require infrangible/m2-catalog-product-customer-benefit

Then enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.