AC-16530: Shopping cart shows inconsistent prices after a scheduled catalog price rule update
The AC-16530 patch fixes the issue where the shopping cart did not consistently reflect scheduled updates to catalog price rules. This patch is available when the Quality Patches Tool (QPT) 1.1.83 is installed. The patch ID is AC-16530. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) >=2.4.4 <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
The shopping cart shows inconsistent prices after a scheduled catalog price rule update.
Prerequisites:
Adobe Commerce with cron jobs running.
Steps to reproduce:
- Log in to the Admin panel.
- On the Admin sidebar, go to Stores > Attributes > Product, open the SKU attribute, expand Storefront Properties, set Use for Promo Rule Conditions to Yes, and click Save Attribute.
- On the Admin sidebar, go to Catalog > Products, click Add Product, choose Simple Product, create simple1 with SKU simple1 and Price 100, and save the product.
- On the Admin sidebar, go to Marketing > Promotions > Catalog Price Rule and click Add New Rule.
- Create rule1, set Status to Active, select the applicable website and the NOT LOGGED IN customer group, and expand Conditions.
- Set the condition to If ALL of these conditions are TRUE: SKU is simple1.
- Expand Actions, set Apply to Apply as percentage of original, set Discount Amount to 10, and click Save.
- Open the storefront as a guest, add simple1 to the cart, and open the Shopping Cart page.
- Verify that the item price and subtotal in the main cart content area and the Summary block are 90.
- In the Admin panel, go to Marketing > Promotions > Catalog Price Rule, open rule1, and in the Scheduled Changes box click Schedule New Update.
- Enter the Update Name, Start Date, and End Date, change Actions > Discount Amount to 20, keep the scheduled rule status Active, and click Save.
- Wait until the scheduled update becomes active, then refresh the Shopping Cart page.
Expected results:
The scheduled 20 percent discount is reflected consistently, and the item price and subtotal in both the main cart content area and the Summary block are 80.
Actual results:
The Summary block shows 80, but the item price in the main cart content area remains 90.
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