This extension for Magento 2 changes the way Magento calculates tier prices of configurable products. To be able to use the features of this module, you need a configurable product with several child products. For each child product, you can now define (different) tier prices for specific quantities. Magento by default would only check the quantities of each child product individually and calculate the final price for each child product separately based on the tier price settings of this specific child. With this module, the quantities of all child products in the cart are summed up and you can decide, which of all fitting tier prices shall be used for the calculation.
There is a configurable product “Awesome T-Shirt” and there are two corresponding variations “green” and “orange”. The price for each t-shirt is 20 USD. If you buy five or more green ones, you only have to pay 18 USD each. If you buy five or more of the orange ones, you only have to pay 16 USD each. Now you add three green and two orange t-shirts to your cart. What would you expect? You would like to have the t-shirts for 16 USD each or at least for 18 USD each, right? Not with Magento. Unfortunately, Magento will charge you 20 USD each:
Fortunately, you can install the module Tier Prices For Configurable Products and even decide if the highest, the lowest or the respective tier price of the product should be charged.
If you configure the extension to charge the highest tier price, you get the t-shirts for 18 USD each:
If you configure the extension to charge the lowest tier price, you get the t-shirts for 16 USD each:
And you can even configure that the respective tier prices should be charged. In this case, you get the green ones for 18 USD each and the orange ones for 16 USD each.
Simple Products Visible In Catalog
Given your simple products, which are assigned to configurable products, are also visible in the catalog individually: If the customer adds such simple products to the cart plus their respective configurable counterparts, both quantities will be combined and respected for the tier price calculation.
- Magento >= 2.3
The installation procedure highly depends on your setup. In any case, you should use a version control system like git and test the installation on a development system. If you are using composer (you should!) and downloaded the extension from the Marketplace or have set up your own composer repository, we recommend installing via composer.
composer require customgento/module-configurable-tier-prices-m2
bin/magento module:enable CustomGento_ConfigurableTierPrices
- unzip the downloaded files
- create the directory
mkdir -p app/code/CustomGento/ConfigurableTierPrices/
- copy the unzipped files to the newly created directory
bin/magento module:enable CustomGento_ConfigurableTierPrices
You find the settings under Stores > Configuration > Sales > Sales > Tier Prices For Configurable Products. You can enable the extension there and choose the tier price calculation type:
Additionally it is possible to define specific product attributes, which should be handled differently in the calculation process. When simple products in the cart differ in one of the chosen attributes, their qty is not summed up to calculate the tier prices. To see the benefit of this feature, let’s take the example of a configurable product with attributes color and size and the following children:
- 10ml/red: 10 USD → 2 for 8 USD each
- 10ml/blue: 10 USD → 2 for 8 USD each
- 100ml/red: 100 USD → 2 for 80 USD each
- 100ml/blue: 100 USD → 2 for 80 USD each
When a customer now buys one unit of 10ml and one of 100ml, the quantities would be summed up and the tier price would be calculated according to the chosen calculation type. So if type
lowest is used, the customer would get the products for 8 USD each, which is a lot too cheap for the 100ml product.
To prevent this, just choose
size as ignored attribute and the extended calculation process will only apply to products with the same size.
It is also possible to disable the updated price calculation for specific categories or products.
Therefore, you can set the attribute
configurabletierprice_disabled / “Disable Tier Prices For Configurable Products” to “Yes” in the configurable product or the category respectively.
Disable Tier Prices For Configurable Products in the configurable product:
Disable Tier Prices For Configurable Products in the category:
If Tier Prices For Configurable Products is disabled for a specific product or for any category this product is assigned to, the extension will not change the price calculation of this product at all. Please note, that in this case the original Magento price calculation will work as usual. Tier prices will still be applied, if the required quantity of a child product is reached, but the quantities will not be summed up anymore between different child products.
Troubleshooting - I installed the extension, but it does not work
- Do you use the latest version of the extension?
- Do you use Magento >= 2.3?
- Do you really use configurable products? This extension only works with configurable products. It does not work if you use e.g. simple products with custom options.
- Make sure that the extension is not disabled under Stores > Configuration > Sales > Sales > Tier Prices For Configurable Products.
- Make sure that the configurable product is not in one of the disabled categories.
- Make sure that the extension is not disabled in the respective configurable product.
- Make sure that you defined tier prices for the child products and that they are lower than the normal prices. That is the way they are supposed to be used.
The uninstallation procedure depends on your setup:
Uninstallation After Composer Installation
bin/magento module:uninstall CustomGento_ConfigurableTierPrices
Uninstallation After Manual Installation
bin/magento module:disable CustomGento_ConfigurableTierPrices
rm -r app/code/CustomGento/ConfigurableTierPrices
If you have any issues with this extension, feel free to contact us!
© 2018-2021 CustomGento GmbH