{"data":{"id":"MDVA-42969","source":"qpt","sourceRef":"magento/quality-patches@1.1.84","title":"Fixes the issue where the Related Product Rule works only when Customer Segment is set to All.","categories":["Catalog/Product"],"components":["magento/module-customer-segment","magento/module-target-rule"],"origin":"adobe-commerce-support","documentation":{"url":"https://experienceleague.adobe.com/en/docs/commerce-operations/tools/quality-patches-tool/patches-available-in-qpt/v1-1-13/mdva-42969-related-product-rule-only-works-when-customer-segment-set-to-all","path":"help/tools/quality-patches-tool/patches-available-in-qpt/v1-1-13/mdva-42969-related-product-rule-only-works-when-customer-segment-set-to-all.md","blobSha":"2e747694d99a6c3402f84c236b0c91cc34a78664","description":"Related product rule only works when the customer segment is set to all.","stepsToReproduce":"1. Go to Stores > Configuration > Catalog > Rule-Based Product Relations and set Show Related Products = Rule-Based Only. 1. Go to Customers > Segments and create a new segment: Apply To = Visitors and Registered Customers. 1. Go to Marketing > Related Product Rules and create a new rule. Apply To = Related Products Customer Segments = All Products to Match = SKU = <select a SKU> Products to Display = SKU +is one of+ Constant Value (specify 1-3 products) 1. Open the matching product on the storefront and verify that the Products to Display are shown. 1. Modify the rule created in step three and set Customer Segments = Specific > Segment from step two. 1. Open the matching product on the storefront.","introducedInQpt":"1.1.13","createdFor":["2.4.2-p1"],"documentedRange":"2.4.1 - 2.4.2-p2","scheduledFixRelease":"2.4.5"},"files":[{"package":"magento/magento2-ee-base","constraint":">=2.4.1 <2.4.3","path":"patches/commerce/MDVA-42969_2.4.2-p1.patch","blobSha":"897a83f79e6630d6a9e2014694e1085513bbc385","url":"https://raw.githubusercontent.com/magento/quality-patches/11d565bdde197b9c7bac859a5698e99098b48457/patches/commerce/MDVA-42969_2.4.2-p1.patch","thirdParty":false,"modifies":[{"path":"vendor/magento/module-customer-segment/Model/Customer.php","change":"modified","package":"magento/module-customer-segment"},{"path":"vendor/magento/module-target-rule/Model/ResourceModel/Index.php","change":"modified","package":"magento/module-target-rule"}],"packages":["magento/module-customer-segment","magento/module-target-rule"],"hasTests":false,"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1"],"mage-os":[]},"unknownVersions":[],"requires":[],"replacedWith":null,"deprecated":false}],"applicableVersions":{"magento-community":[],"magento-commerce":["2.4.2-p2","2.4.2-p1","2.4.2","2.4.1-p1","2.4.1"],"mage-os":[]},"conditions":null,"requirements":null},"_documentation":"https://magento.watch/api","_description":"Quality patch MDVA-42969 details"}