QUALITY PATCH

ACSD-48366: The product image is not displayed on the Back to Stock email template

The product image is not displayed on the Back to Stock email template. Quality patch ACSD-48366 for magento/module-product-alert applies to Magento Open Source and Adobe Commerce 2.4.4 to 2.4.6-p15.

Categories
Emails
Components
magento/module-product-alert
Origin
adobe-commerce-support
Since QPT
1.1.26

Issue

The product image is not displayed on the Back to Stock email template.

Steps to reproduce

1. Enable Product Alert for Back in Stock by going to Store > Configuration > Catalog > Product Alert > Allow Alert When Product Comes Back in Stock = Yes. 1. Enable Display Out of Stock Products by going to Store > Configuration > Catalog > Inventory > Display Out of Stock = Yes. 1. Create a simple product with qty = 0. 1. Create a customer from the storefront and subscribe to the above product to get product alerts when in stock. 1. Make the product in stock. 1. Execute the product alert cron. n98-magerun2.phar sys:cron:run catalog_product_alert 1. Start the product alert for the customer. bin/magento queue:consumers:start product_alert 1. Check the email. Stock alert email should now be available in the mail catcher.

Adobe's page lists 2.4.4 - 2.4.6 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.7.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-48366. On Cloud, add ACSD-48366 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-48366/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (1): magento/module-product-alert
Packages across compatible versions (1): magento/module-product-alert

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.