ACSD-59229: Customer group data misallocation due to an outdated X-Magento-Vary value
- Topics:
- Customers
- Personalization
- Marketing Tools
CREATED FOR:
- Experienced
- Admin
- Developer
The ACSD-59229 patch fixes the issue where customer group-related information is saved in the wrong segment because of an outdated X-Magento-Vary value in the request. This patch is available when the Quality Patches Tool (QPT) 1.1.50 is installed. The patch ID is ACSD-59229. Please note that the issue is fixed in 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.4-p8
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.6-p7
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
Customer group-related information is saved in the wrong segment because of an outdated X-Magento-Vary value in the request.
Prerequisites:
Ensure that Adobe Commerce B2B with sample data is installed and Varnish is configured.
Steps to reproduce:
-
Set up advanced pricing for the SKU 24-MB01:
-
Regular price = 9999$
-
Catalog and Tier Price:
- Wholesale = $200
- Retailer = $30
-
-
Create two customer accounts.
-
Assign both customers to the Wholesale group.
-
Open two different browser sessions and log in with each customer.
-
Navigate to the 24-MB01 product page for each customer and verify that the price displayed is $200.
-
Change the customer group for one of the customers to Retail.
-
Clear the cache using the command:
bin/magento cache:flush full_page
. -
Refresh the product page for each customer.
Expected results:
- The retail customer can see the correct price of $30 for the product.
- The wholesale customer can see the correct price of $200 for the product.
Actual results:
- The retail customer can see the correct price of $30 for the product.
- The wholesale customer sees an incorrect price of $30 (retail price) for the product.
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 released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.