ACSD-48204: Catalog price rule created based on Yes/No attribute doesn’t consider selected scope
The ACSD-48204 patch fixes the issue where the catalog price rule created based on Yes/No attribute doesn’t consider the selected scope. This patch is available when the Quality Patches Tool (QPT) 1.1.28 is installed. The patch ID is ACSD-48204. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.2-p2
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.3.7 - 2.4.2-p2
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
The catalog price rule created based on Yes/No attribute doesn’t consider the selected scope.
Steps to reproduce:
-
Create two websites (Default and W2).
-
Create a product attribute of Yes/No type.
- Set Default value = No
- Scope = Website
- Use for Promo Rule Conditions = Yes
-
Create a configurable product based on any attribute with two variations (V1 and V2).
- Add the Yes/No attribute to the configurable variations attribute set
- For one of the variations (V1), set the value to Yes on the non-default website (W2)
-
Create a catalog rule:
- Applied to both websites
- Condition: Yes/No attribute value is Yes
- Discount = 50%
-
Open the configurable product on the non-default website (W2).
-
Check that the V1 variation has the 50% discount applied.
-
Open the V1 variation in the Adobe Commerce Admin.
- Switch to the default website
- Make no changes and save the product
-
Refresh the configurable product storefront page.
Expected results:
The V1 variation still has the 50% discount applied as no changes were made.
Actual results:
The discount disappears.
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 released: a new tool to self-serve quality patches in the support knowledge base.
- Check if patch is available for your Adobe Commerce issue using Quality Patches Tool in the Quality Patches Tool guide.
For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.