MDVA-43726: The catalog price rule based on store-level attribute match fails to apply…
The catalog price rule based on store-level attribute match fails to apply after partial reindex. Quality patch MDVA-43726 for magento/module-catalog-rule applies to Magento Open Source and Adobe Commerce 2.3.3 to 2.4.2-p2.
- Categories
- Price/Tax
- Components
- magento/module-catalog-rule
- Origin
- adobe-commerce-support
- Since QPT
- 1.1.12
Issue
The catalog price rule based on store-level attribute match fails to apply after partial reindex.
Steps to reproduce
1. Set indexer mode to run on schedule. 1. Create two configurable product attributes. For example: Color (Visual Swatch) and Size (Text Swatch). 1. Create a configurable product using both attributes created in Step 2. 1. After creating the products, create a Yes/No type attribute and make it visible in the rule conditions. 1. Add this attribute to the default attribute set. 1. Create a catalog price rule to apply when this attribute is set to Yes. 1. Open one of the simple products related to the configurable product. 1. Change the scope to store view and update the attribute value to Yes. 1. Run the CRON and check the price on the frontend. 1. Run a full reindex. Again, check the price on the frontend. 1. Update the configurable product category. 1. Run the CRON and check the price again on the frontend.
Adobe's page lists 2.3.3 - 2.4.2-p2 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.5.
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 MDVA-43726. On Cloud, add MDVA-43726 under stage.build.QUALITY_PATCHES in .magento.env.yaml.
For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its MDVA-43726/ 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
magento/magento2-base >=2.3.3 <2.4.3
- Magento Open Source
- 2.4.2-p2, 2.4.2-p1, 2.4.2, 2.4.1-p1, 2.4.1, 2.4.0-p1, 2.4.0, 2.3.7-p4, 2.3.7-p3, 2.3.7-p2, 2.3.7-p1, 2.3.7, 2.3.6-p1, 2.3.6, 2.3.5-p2, 2.3.5-p1, 2.3.5, 2.3.4-p2, 2.3.4-p1, 2.3.4, 2.3.3-p2, 2.3.3
- Adobe Commerce
- 2.4.2-p2, 2.4.2-p1, 2.4.2, 2.4.1-p1, 2.4.1, 2.4.0-p1, 2.4.0, 2.3.7-p4, 2.3.7-p3, 2.3.7-p2, 2.3.7-p1, 2.3.7, 2.3.6-p1, 2.3.6, 2.3.5-p2, 2.3.5-p1, 2.3.5, 2.3.4-p2, 2.3.4-p1, 2.3.4, 2.3.3-p2, 2.3.3
- Patch file
- patches/os/MDVA-43726_2.4.2-p2.patch
- vendor/magento/module-catalog-rule/Model/Indexer/ReindexRuleProduct.php
