This module is the common base for Infrangible pricing modules such as “Catalog Product Customer Price” and “Catalog Product Customer Benefit”. Those modules decide which shopper gets which price; this module takes care of showing that price in the store and charging it in the cart. Because personal prices are loaded separately for each visitor, they work together with the full page cache: cached pages stay the same for everybody, and logged-in customers still see their own price.
Features
- Alternative prices, either as a fixed price or as a percentage discount on the regular final price, are shown on product pages and in category product lists. The previous price is shown as the old price.
- Supports simple, downloadable, configurable (including the price of the selected variant) and bundle products.
- If several alternative prices apply to a product, the one with the highest priority is used.
- In the cart the alternative price is set as the item price. Prices are checked again whenever the cart changes and when a guest cart is merged into the customer’s cart at login.
- Quantity limits defined by a pricing module are respected: if a shopper tries to add more than allowed, the message “Not all of your products are available in the requested quantity.” is shown.
- Tier prices and their savings percentage are recalculated for alternative prices.
- The applied price is noted on the order item for later reference.
Configuration
Go to Stores > Configuration > Infrangible Solutions > Catalog Product Price Calculation > General. With “Avoid Price Jump” set to “Yes”, prices are hidden until the visitor’s personal price has been loaded, so shoppers do not see one price change into another. The default is “No”. The setting can be changed per website and store view.
Good to know
Merchants normally do not install this module directly. It is pulled in automatically by the pricing modules that use it. The storefront part is built for the standard Magento frontend (Luma and Luma-based themes).
Installation
Install the module with Composer in your Magento root directory:
composer require infrangible/m2-catalog-product-price-calculationThen enable it and update the store as described in the installation guide. Composer installs the required modules listed on this page automatically.