MDVA-42768-V2: Configurable product displays regular price as 0 when "Display Out-of-Stock" is Yes
Configurable product displays regular price as 0 when "Display Out-of-Stock" is Yes. Quality patch MDVA-42768-V2 for magento/module-catalog-graph-ql applies to Magento Open Source and Adobe Commerce 2.4.2 to 2.4.2-p2.
- Categories
- Catalog/Product
- Components
- magento/module-catalog-graph-ql, magento/module-configurable-product, magento/module-configurable-product-graph-ql, magento/module-inventory-catalog
- Origin
- adobe-commerce-support
No Adobe documentation page exists for this patch.
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-42768-V2. On Cloud, add MDVA-42768-V2 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-42768-V2/ 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.4.2 <2.4.3
- Requires
- MDVA-40488, MDVA-43862
- Patch file
- patches/os/MDVA-42768_2.4.2_v2.patch
- vendor/magento/module-catalog-graph-ql/Model/Resolver/Products/DataProvider/Product/CollectionProcessor/StockProcessor.php
- vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsCompositeFilter.php (added)
- vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsFilterInterface.php (added)
- vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsProvider.php
- vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsStatusFilter.php (added)
- vendor/magento/module-configurable-product/Pricing/Price/ConfigurableOptionsStockStatusFilter.php (added)
- vendor/magento/module-configurable-product/etc/di.xml
- vendor/magento/module-configurable-product/etc/frontend/di.xml
- vendor/magento/module-configurable-product-graph-ql/Model/Options/DataProvider/Variant.php
- vendor/magento/module-configurable-product-graph-ql/Model/Resolver/Product/Price/Provider.php
- vendor/magento/module-configurable-product-graph-ql/Plugin/AddStockStatusToCollection.php (added)
- vendor/magento/module-configurable-product-graph-ql/etc/graphql/di.xml
magento/inventory-metapackage >=1.2.2 <1.2.3
- Patch file
- patches/os/MDVA-42768_1.2.2_v2.patch
- vendor/magento/module-inventory-catalog/Model/ResourceModel/AddStockDataToCollection.php
