ACP2E-5134: Removing bundled product from Shared Catalog leaves bundle in cart and causes errors at checkout
The ACP2E-5134 patch fixes the issue where removing a product included in a bundle from a company’s Shared Catalog leaves the bundle product in the shopping cart, causing an error in the cart and during checkout. This patch is available when the Quality Patches Tool (QPT) 1.1.86 is installed. The patch ID is ACP2E-5134. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.10.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p10
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.6 - 2.4.9
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
Removing a product included in a bundle from a company’s Shared Catalog leaves the bundle in the cart and causes cart and checkout errors.
Prerequisites:
Adobe Commerce with the B2B extension, with Company and Shared Catalog enabled.
Steps to reproduce:
- In the Admin panel, go to Stores > Settings > Configuration > General > B2B Features. Set Enable Company and Enable Shared Catalog to Yes, then click Save Config.
- Go to Catalog > Products and create three simple products (
simple1,simple2, andsimple3) and a bundle product (bundle1). Add three options to the bundle, one for each simple product. Set Dynamic Price to Yes, and clear the Required checkbox for each option. - Go to Catalog > Shared Catalogs and click Add Shared Catalog. Create a Custom shared catalog named
Shared Catalog A, then use Set Pricing and Structure to addbundle1,simple1,simple2, andsimple3. - Go to Customers > Companies and click Add New Company. Create a company with Status set to Active and a Company Admin. In Advanced Settings, set Customer Group to
Shared Catalog A. - Sign in to the storefront as the company admin. Open
bundle1, click Customize and Add to Cart, select all three options, and click Add to Cart. - In the Admin panel, open
simple2and expand Product In Shared Catalogs. RemoveShared Catalog Afrom Shared Catalogs, then click Save. - On the storefront, sign in as the same customer and open the shopping cart.
- Open
bundle1, selectsimple1andsimple3, and click Add to Cart.
Expected results:
- The shopping cart displays
Some of the products below do not have all the required options.The bundle added beforesimple2was removed displaysThe required options you selected are not available.Proceed to Checkout remains hidden until that item is removed. bundle1withsimple1andsimple3is added to the cart as a new line, and no error page appears.
Actual results:
Opening the shopping cart displays an error page, and Add to Cart fails, preventing the customer from proceeding to checkout. The var/log/exception.log file records the warning Undefined array key "sequence-3".
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide