ACP2E-5041: Saving a stale product form expires the special price after a scheduled update
The ACP2E-5041 patch fixes the issue where saving a product edit page that was opened during a scheduled update sets the special price end date to the update’s end time, which causes the special price to expire. This patch is available when the Quality Patches Tool (QPT) 1.1.84 is installed. The patch ID is ACP2E-5041. 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-p10
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.5 - 2.4.8-p5
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
Saving a product edit page that was opened during a scheduled update, but saved after the update ended, sets the special price end date to the update’s end time. As a result, the special price expires.
Steps to reproduce:
- In the Admin, open a product, and then set Price to 160.
- Under Price, select Advanced Pricing, set Special Price to 150, select Done, and then select Save.
- On the storefront, verify that the product price is 150.
- Create a new scheduled update, and then set Start Date to T+2 minutes and End Date to T+5 minutes, where T is the current time.
- Set Special Price to 140, and then save the scheduled update.
- At T+3 minutes, verify that the product price on the storefront is 140.
- At T+3 minutes, open the same product in a new Admin tab. Leave the product edit page open and don’t save it.
- At T+6 minutes, verify that the scheduled update has ended and that the product price on the storefront is 150.
- In the product edit tab you left open, select Save without refreshing the page.
- Reload the product page on the storefront.
Expected results:
- During the scheduled update, the storefront displays the scheduled special price of 140.
- After the scheduled update ends, the storefront reverts to the permanent special price of 150 and remains at 150 after you save the previously opened product edit page.
Actual results:
- Saving the previously opened product edit page silently writes the end time of the expired scheduled update to the permanent Special Price To Date.
- The storefront displays the regular price of 160 because it treats the permanent special price of 150 as expired. No error or warning appears.
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