Closed gaiterjones closed 4 years ago
Hi @gaiterjones. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
@gaiterjones do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
@magento give me 2.4-develop instance
Hi @gaiterjones. Thank you for your request. I'm working on Magento 2.4-develop instance for you
Hi @gaiterjones, here is your Magento instance.
Admin access: https://i-28042-2-4-develop.instances.magento-community.engineering/admin_caf5
Login: 14afe72d
Password: 6a766da55ee8
Instance will be terminated in up to 3 hours.
@gaiterjones I have seen quite a lot open PR around this topic (tier price) for both backend and frontend. Not sure it's can solve your problem Filter with component: ConfigurableProduct
One open PR for server rendering swatch and also other fixes :)
@mrtuvn thanks for your comments. I will close this due to lack of interest. I have implemented my own fix using the code I posted above.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
swatch-render.js has a new _getNewPrices function called from _UpdatePrice when swatch image clicked.
if optionPriceDiff is zero no option data (including tier pricing) is returned resulting in no tier pricing being displayed.
Assuming basePrice here is the lowest price of the variation product, tier prices for the lowest priced variation product will never be displayed because the optionPriceDiff calculation of optionFinalPrice (min parent product price) minus basePrice (lowest price of option) are the same and will be zero.
if basePrice is the lowest option price then tier prices of the options should also be checked to calculate the actual lowest option price. Alternatively a simple check for option tier price data should be performed instead of the optionPriceDiff.
e.g.