ACP2E-4682: Storefront pages that check quote isActive create empty quote records
The ACP2E-4682 patch fixes the issue where visiting a storefront page that checks the quote isActive status creates empty quote records each time the page is loaded. This patch is available when the Quality Patches Tool (QPT) 1.1.82 is installed. The patch ID is ACP2E-4682. 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-p8
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 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
Visiting a storefront page that checks the quote isActive status creates an empty quote record each time the page is loaded.
Steps to reproduce:
-
Customize a storefront product page and add a block that checks the quote’s
isActivestatus. -
Sign in to a customer account.
-
Reload the product page on the storefront.
-
Run the following query:
code language-none SELECT COUNT(*) FROM quote; -
Observe that the quote count increases each time the product page is loaded.
Expected results:
- An empty quote record is not created when the page is loaded.
Actual results:
- An empty quote record is created each time a page containing the quote
isActivecheck is visited.
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