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
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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:

  1. 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.
  2. Go to Catalog > Products and create three simple products (simple1, simple2, and simple3) 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.
  3. 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 add bundle1, simple1, simple2, and simple3.
  4. 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.
  5. 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.
  6. In the Admin panel, open simple2 and expand Product In Shared Catalogs. Remove Shared Catalog A from Shared Catalogs, then click Save.
  7. On the storefront, sign in as the same customer and open the shopping cart.
  8. Open bundle1, select simple1 and simple3, and click Add to Cart.

Expected results:

  1. The shopping cart displays Some of the products below do not have all the required options. The bundle added before simple2 was removed displays The required options you selected are not available. Proceed to Checkout remains hidden until that item is removed.
  2. bundle1 with simple1 and simple3 is 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools