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

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:

  1. In the Admin, open a product, and then set Price to 160.
  2. Under Price, select Advanced Pricing, set Special Price to 150, select Done, and then select Save.
  3. On the storefront, verify that the product price is 150.
  4. 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.
  5. Set Special Price to 140, and then save the scheduled update.
  6. At T+3 minutes, verify that the product price on the storefront is 140.
  7. At T+3 minutes, open the same product in a new Admin tab. Leave the product edit page open and don’t save it.
  8. At T+6 minutes, verify that the scheduled update has ended and that the product price on the storefront is 150.
  9. In the product edit tab you left open, select Save without refreshing the page.
  10. Reload the product page on the storefront.

Expected results:

  1. During the scheduled update, the storefront displays the scheduled special price of 140.
  2. 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:

  1. Saving the previously opened product edit page silently writes the end time of the expired scheduled update to the permanent Special Price To Date.
  2. 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:

To learn more about Quality Patches Tool, refer to:

recommendation-more-help
commerce-operations-help-tools