QUALITY PATCH

ACP2E-4110: Bundle products with a Special Price display incorrect amounts on the PDP and the PLP…

Bundle products with a Special Price display incorrect amounts on the PDP and the PLP in a non-default currency. Quality patch ACP2E-4110 for magento/module-bundle applies to Magento Open Source and Adobe Commerce 2.4.7 to 2.4.8-p5.

Categories
Catalog/Product, Price/Tax, Shopping Cart
Components
magento/module-bundle, magento/module-catalog
Origin
adobe-commerce-support
Since QPT
1.1.79

Issue

Bundle products with a Special Price display incorrect amounts on the PDP and the PLP in a non-default currency.

Steps to reproduce

1. Create a simple product. Set the Price = $40.25. 1. Create a bundle product. 1. Set the Special Price for the bundle product = 97.5% and the Price View = Price Range. 1. Assign the simple product as an option of the bundle product. Set the Default Quantity = 8. 1. Assign the bundle product to a visible category so it can be checked on the PLP/category page. 1. Keep the pricing source in USD, and set the Allowed Currency = GBP and set the default Default Display Currency = GBP for the storefront. 1. Set the currency conversion rate for USD to GBP = 0.75. 1. Clear the cache and run reindex. 1. Open the storefront in the GBP view and note the bundle price on the PLP/category page and the PDP. 1. Add the bundle product to the cart. 1. Compare the displayed price in the cart with the price on the PLP/PDP.

Adobe's page lists 2.4.7 - 2.4.8-p4 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.9.

Additional steps

Recommended to install along with ACP2E-4411 for complete coverage of bundle product price issues in multi-currency setups.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACP2E-4110. On Cloud, add ACP2E-4110 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACP2E-4110/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (2): magento/module-bundle, magento/module-catalog
Packages across compatible versions (2): magento/module-bundle, magento/module-catalog

magento/magento2-base >=2.4.7 <2.4.9

Magento Open Source
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7
Adobe Commerce
2.4.8-p5, 2.4.8-p4, 2.4.8-p3, 2.4.8-p2, 2.4.8-p1, 2.4.8, 2.4.7-p10, 2.4.7-p9, 2.4.7-p8, 2.4.7-p7, 2.4.7-p6, 2.4.7-p5, 2.4.7-p4, 2.4.7-p3, 2.4.7-p2, 2.4.7-p1, 2.4.7
Patch file
patches/os/ACP2E-4589_2.4.8-p3.patch
  • vendor/magento/module-bundle/Block/Catalog/Product/View/Type/Bundle.php
  • vendor/magento/module-bundle/Pricing/Adjustment/Calculator.php
  • vendor/magento/module-catalog/Pricing/Price/RegularPrice.php

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.