The MDVA-30782 Magento patch fixes the issue where a dynamic block is displayed regardless of the cart rule. This patch is available when the Magento Quality Patch (MQP) tool 1.0.7 is installed. Please note that the issue is scheduled to be fixed in Magento version 2.4.2.
Affected products and versions
The patch is created for Magento version:
Magento Commerce Cloud 2.3.5-p1
Compatible with Magento versions:
Magento Commerce/ Magento Commerce Cloud >=2.3.5 <2.4.2
Note: the patch might become applicable to other versions with new MQP tool releases. To check if the patch is compatible with your Magento version, run
Dynamic block is displayed on the page even when the related catalog price rule condition is not satisfied.
Steps to reproduce:
- Create two products.
- Create a catalog price rule applicable only for one of these products.
- Create a dynamic block and assign the newly created catalog price rule to it.
- Create a widget with the following parameters:
- Type = Dynamic Block Rotator
- Dynamic Blocks to Display = Specified Dynamic Blocks
- Specify Dynamic Blocks = block form step #3
Layout Updates (can be any)
- Display on = All Product Types
- Container = Product auxiliary info
- Perform reindex and flush cache.
- Check both product pages for dynamic block form step #3
Dynamic block appears on the first product page only.
Dynamic block appears on both product pages.
With Dynamic Blocks to Display = Catalog Price Rule Related on step #3 the result is the same.
Apply the patch
For instructions on how to apply an MQP patch, use the following links depending on your Magento product:
- Magento Commerce: DevDocs Apply patches using Magento Quality Patches Tool.
- Magento Commerce Cloud: DevDocs Upgrades and Patches > Apply patches.
To learn more about Magento Quality Patches, refer to:
- Magento Quality Patches released: a new tool to self-serve quality patches.
- Check if patch is available for your Magento issue using Magento Quality Patches.
For info about other patches available in MQP tool, refer to the Patches available in MQP tool section.