QUALITY PATCH

MDVA-38666: Admin user is not able to change the configurable product options in the customer's cart

Admin user is not able to change the configurable product options in the customer's cart. Quality patch MDVA-38666 for magento/module-configurable-product applies to Magento Open Source and Adobe Commerce 2.3.2 to 2.3.5-p2.

Categories
Admin, Shopping Cart
Components
magento/module-configurable-product, magento/module-customer, magento/module-quote
Origin
adobe-commerce-support
Since QPT
1.1.9

Issue

Admin user is not able to change the configurable product options in the customer's cart.

Steps to reproduce

1. Set customer account scope to Global. 1. Create two websites with stores. 1. Create two configurable products and assign them to each website. 1. Create a customer account in the frontend and log in. 1. Add a product to the cart and do a checkout (this is done to make quote ids different on each website). 1. Add a product to the cart and leave it. 1. Switch to the second website and add the product to the cart (the same login should work since the customer account scope is set to Global). 1. Open the customer from the admin and navigate to the cart tab. 1. Switch the store from the drop-down and try to change the configuration.

Adobe's page lists 2.3.2 - 2.3.5-p2 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.5.

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 MDVA-38666. On Cloud, add MDVA-38666 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-38666/ 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 (3): magento/module-configurable-product, magento/module-customer, magento/module-quote
Packages across compatible versions (3): magento/module-configurable-product, magento/module-customer, magento/module-quote

magento/magento2-base >=2.3.2 <2.3.6

Magento Open Source
2.3.5-p2, 2.3.5-p1, 2.3.5, 2.3.4-p2, 2.3.4-p1, 2.3.4, 2.3.3-p2, 2.3.3, 2.3.2-p2, 2.3.2-p1, 2.3.2
Adobe Commerce
2.3.5-p2, 2.3.5-p1, 2.3.5, 2.3.4-p2, 2.3.4-p1, 2.3.4, 2.3.3-p2, 2.3.3, 2.3.2-p2, 2.3.2-p1, 2.3.2
Patch file
patches/os/MDVA-38666_2.3.4-p2_v2.patch
  • vendor/magento/module-configurable-product/Model/Product/Type/Configurable.php
  • vendor/magento/module-customer/Block/Adminhtml/Edit/Tab/Cart.php
  • vendor/magento/module-customer/Controller/Adminhtml/Cart/Product/Composite/Cart.php
  • vendor/magento/module-customer/Controller/Adminhtml/Index/Cart.php
  • vendor/magento/module-customer/view/adminhtml/templates/tab/cart_website_filter_form.phtml (added)
  • vendor/magento/module-quote/Model/ResourceModel/QuoteItemRetriever.php (added)
  • vendor/magento/module-quote/i18n/en_US.csv

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.