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
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

Visiting a storefront page that checks the quote isActive status creates an empty quote record each time the page is loaded.

Steps to reproduce:

  1. Customize a storefront product page and add a block that checks the quote’s isActive status.

  2. Sign in to a customer account.

  3. Reload the product page on the storefront.

  4. Run the following query:

    code language-none
    SELECT COUNT(*) FROM quote;
    
  5. Observe that the quote count increases each time the product page is loaded.

Expected results:

  1. An empty quote record is not created when the page is loaded.

Actual results:

  1. An empty quote record is created each time a page containing the quote isActive check is visited.

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