QUALITY PATCH

ACSD-69351: Issue where gift card balances and expiration dates are displayed not in accordance…

Issue where gift card balances and expiration dates are displayed not in accordance with the website scope assigned. Quality patch ACSD-69351 for magento/module-gift-card-account applies to Magento Open Source and Adobe Commerce 2.4.4 to 2.4.8-p5.

Categories
Customer
Components
magento/module-gift-card-account
Origin
adobe-commerce-support
Since QPT
1.1.77

Issue

Issue where gift card balances and expiration dates are displayed not in accordance with the website scope assigned.

Steps to reproduce

1. Create Website A and Website B, and then create a corresponding Store and Store View for each website. 1. Go to Catalog > Products > Add Product > Simple Product, set the Name, SKU, Price (for example, 10.00), and Stock Status to In Stock. In the Product in Websites section, select both Website A and Website B, and then Save the product. 1. Navigate to Marketing > Gift Card Accounts > Add Gift Card Account, set Website to Website A only, configure the balance as 100.00, set the Status to Enabled, select a future expiration date, Save the gift card account, and note the generated gift card code. 1. Open the storefront for Website B and add the product created earlier to the shopping cart. 1. On the cart page, locate the Gift Card section, enter the gift card code assigned to Website A, and select Check gift card status and balance without applying the gift card. The balance and expiration date display. 1. Alternatively, sign in to a customer account on Website B, go to My Account > Gift Card, enter the same gift card code, and check the balance. The balance and expiration date display. 1. Proceed to checkout on Website B and attempt to apply the same gift card code. The system correctly rejects the gift card due to website scope validation.

Adobe's page lists 2.4.4 - 2.4.8-p3 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.9.

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-69351. On Cloud, add ACSD-69351 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-69351/ 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-gift-card-account

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.