{"data":{"id":"ACSD-54739","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where product stock status condition is not applied for related product rules.","categories":["Catalog/Product"],"components":["magento/module-catalog-inventory","magento/module-target-rule","magento/module-inventory-catalog"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-43/acsd-54739-product-stock-status-not-applied-for-related-product-rules","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-43/acsd-54739-product-stock-status-not-applied-for-related-product-rules.md","blobSha":"6aa68b3ffea7fa8d4e83fe44c7729fa69ff1d2a3","description":"Product stock status is not applied for Related Product Rules.","stepsToReproduce":"1. Set the Display Out of Stock Products configuration to Yes. 1. Go to Admin > Stores > Attributes > Product > Search quantity attribute and set Yes for the promo rule condition. 1. Create the related product rule. Go to Product rule information > Products to match > Add a condition with attribute quantity (select in stock/out of stock). 1. Check the products at the front end.","introducedInQpt":"1.1.43","createdFor":["2.4.5-p2"],"documentedRange":"2.4.5 - 2.4.5-p5","scheduledFixRelease":"2.4.7"},"files":[{"package":"magento/magento2-base","constraint":">=2.4.5 <2.4.6","path":"patches/os/ACSD-52302_2.4.5-p2.patch","blobSha":"862f90759e0089043b287e1f3521517a6f12454f","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-52302_2.4.5-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Stock/Status.php","change":"modified","package":"magento/module-catalog-inventory"}],"packages":["magento/module-catalog-inventory"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-base","constraint":">=2.4.6 <2.4.7","path":"patches/os/ACSD-54739_2.4.6-p2.patch","blobSha":"4c534635ac02a7f2ac2b483e2f0617a0da2fdb56","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-54739_2.4.6-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-catalog-inventory/Model/ResourceModel/Stock/Status.php","change":"modified","package":"magento/module-catalog-inventory"}],"packages":["magento/module-catalog-inventory"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-ee-base","constraint":">=2.4.5 <2.4.6","path":"patches/commerce/ACSD-52302_2.4.5-p2.patch","blobSha":"4f40f5a992a7c70c2554252b8315e0fc40297712","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-52302_2.4.5-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-target-rule/Model/Actions/Condition/Product/Attributes/SqlBuilder.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/ResourceModel/Index.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/CategoryIds.php","change":"added","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/QuantityAndStockStatus.php","change":"added","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/SqlBuilder.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/SqlBuilderInterface.php","change":"added","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/etc/di.xml","change":"modified","package":"magento/module-target-rule"}],"packages":["magento/module-target-rule"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/magento2-ee-base","constraint":">=2.4.6 <2.4.7","path":"patches/commerce/ACSD-54739_2.4.6-p2.patch","blobSha":"8fe3790ebc020de1392ff5098bca591ac72045c1","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/ACSD-54739_2.4.6-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-target-rule/Model/Actions/Condition/Product/Attributes/SqlBuilder.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/CategoryIds.php","change":"added","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/QuantityAndStockStatus.php","change":"added","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/SqlBuilder.php","change":"modified","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/Model/Rule/Condition/Product/Attributes/SqlBuilderInterface.php","change":"added","package":"magento/module-target-rule"},{"path":"vendor/magento/module-target-rule/etc/di.xml","change":"modified","package":"magento/module-target-rule"}],"packages":["magento/module-target-rule"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.5 <1.2.6","path":"patches/os/ACSD-52302_1.2.5-p2.patch","blobSha":"15eb3127d76aefbac753397ec1ba12b11de82d29","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-52302_1.2.5-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/AddStockStatusToSelect.php","change":"modified","package":"magento/module-inventory-catalog"}],"packages":["magento/module-inventory-catalog"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"unknownVersions":["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","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false},{"package":"magento/inventory-metapackage","constraint":">=1.2.6 <1.2.7","path":"patches/os/ACSD-54739_1.2.6-p2.patch","blobSha":"ef9e0b16f9aae23871b037ac760ee45ec5cc7744","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/os/ACSD-54739_1.2.6-p2.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-inventory-catalog/Model/ResourceModel/AddStockStatusToSelect.php","change":"modified","package":"magento/module-inventory-catalog"}],"packages":["magento/module-inventory-catalog"],"hasTests":false,"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6"],"mage-os":[]},"unknownVersions":["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","2.3.2-p2","2.3.2-p1","2.3.2","2.3.1","2.3.0"],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"magento-commerce":["2.4.6-p15","2.4.6-p14","2.4.6-p13","2.4.6-p12","2.4.6-p11","2.4.6-p10","2.4.6-p9","2.4.6-p8","2.4.6-p7","2.4.6-p6","2.4.6-p5","2.4.6-p4","2.4.6-p3","2.4.6-p2","2.4.6-p1","2.4.6","2.4.5-p17","2.4.5-p16","2.4.5-p15","2.4.5-p14","2.4.5-p13","2.4.5-p12","2.4.5-p11","2.4.5-p10","2.4.5-p9","2.4.5-p8","2.4.5-p7","2.4.5-p6","2.4.5-p5","2.4.5-p4","2.4.5-p3","2.4.5-p2","2.4.5-p1","2.4.5"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch ACSD-54739 details"}