QUALITY PATCH

ACP2E-4411: The incorrect price is displayed for a dynamic-price bundle product on the cart page…

The incorrect price is displayed for a dynamic-price bundle product on the cart page and in the mini-cart for multiple-currency stores. Quality patch ACP2E-4411 for magento/module-bundle applies to Magento Open Source and Adobe Commerce 2.4.8 to 2.4.8-p5.

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

Issue

The incorrect price is displayed for a dynamic-price bundle product on the cart page and in the mini-cart for multiple-currency stores.

Steps to reproduce

1. In Stores > Configuration > General > Currency Setup, set the secondary allowed currency = GBP. 1. In Stores > Currency > Currency Rates, set the currency conversion rate for USD to GBP = 0.74 and Save. 1. Clear the cache and run reindex. 1. Configure the tax rate = 20% and create a corresponding tax rule that applies to the test product. 1. In Stores > Configuration > Sales > Tax, configure storefront display so that: * Display Product Prices in Catalog = Including and Excluding Tax * Shopping Cart Display Settings > Display Prices = Including and Excluding Tax 1. Create a simple product with: * price = 40.25 * Qty large enough to be saleable * Weight populated * Tax class = taxable 1. Create a bundle product with: * Dynamic Price = Yes * One required bundle option * The simple product assigned to that option * Default Quantity = 8 1. Open the bundle product's Product Detail Page (PDP) (GBP view), and observe the prices. 1. Add the bundle product to the cart, view the cart page, and observe both the excluding-tax and including-tax price values. 1. Open the mini-cart and the shopping cart page. 1. Compare the displayed GBP prices in the shopping cart, the mini-cart, and on the PDP.

Adobe's page lists 2.4.8 - 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-4110 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-4411. On Cloud, add ACP2E-4411 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-4411/ 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-tax
Packages across compatible versions (2): magento/module-bundle, magento/module-tax

magento/magento2-base >=2.4.8 <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
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
Requires
ACP2E-4475
Patch file
patches/os/ACP2E-4417_2.4.8-p3.patch
  • vendor/magento/module-bundle/Model/Quote/Item/Option.php
  • vendor/magento/module-bundle/Plugin/Tax/BlockItemPriceRenderer.php (added)
  • vendor/magento/module-bundle/etc/di.xml
  • vendor/magento/module-tax/Block/Item/Price/Renderer.php
  • vendor/magento/module-tax/Plugin/Checkout/CustomerData/Cart.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.