ACP2E-4533: Placeholder images fail to load on storefront when URL includes store code

The ACP2E-4533 patch fixes the issue where placeholder images do not load on the storefront when a store code is included in the URL. This patch is available when the Quality Patches Tool (QPT) 1.1.80 is installed. The patch ID is ACP2E-4533. 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-p8

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-p10
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

Placeholder images do not load on the storefront when the URL includes the store code.

Steps to reproduce:

  1. Create an additional website, store, and store view.
  2. To configure placeholder images in the default scope, in the Admin sidebar, go to Stores > Settings > Configuration.
  3. In the left panel, expand Catalog and choose Catalog.
  4. Expand the Product Image Placeholders section to configure placeholder images for the new website scope.
  5. Create a product with images and assign it to both websites.
  6. Delete the uploaded product images from the pub/media/catalog/product folder.
  7. Open the product on the storefront for both websites.

Expected results:

The non-default website should display the website-specific placeholder images when the actual images are unavailable.

Actual results:

The non-default website displays the default placeholder image, regardless of the placeholder images uploaded for it.

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