ACP2E-3753: Stock alert emails not using store-specific theme templates in multi-store setup
The ACP2E-3753 patch fixes the issue where product alert emails in a multi-store setup were always sent using the default theme, regardless of the store or theme configuration. This patch is available when the Quality Patches Tool (QPT) 1.1.65 is installed. The patch ID is ACP2E-3753. 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.5-p11
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-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
Product alert emails in a multi-store setup are always sent using the default theme, regardless of the store or theme configuration.
Steps to reproduce:
-
Create two websites, stores and store views.
-
Create two separate themes and assign these to different stores.
-
Product alert setting is the default scope that runs every minute.
-
Override/add some content to the
stock.phtml
file for both themes. Example of the file location:code language-none app\design\frontend\Adobe\Taiwan\Magento_ProductAlert\templates\email\stock.phtml app\design\frontend\Adobe\Japan\Magento_ProductAlert\templates\email\stock.phtml
-
Create a user for each store and subscribe to the product stock alert.
-
Trigger the product stock alert to send the emails.
Expected results:
The email should include the theme-level changes.
Actual results:
The emails don’t include the templates set in the respective website/store.
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.