Currently, if a customer orders 2 products, suppose, 1 product is present in Store 1 which is 20 miles away from customer location and both the products are present in Store 2 which is 30miles away from customer's location,1 product available at Store 1 is being picked up, and then second product is picked up from Store 2.
This is because I am filtering and assigning the nearest store to each order item in a particular Order.
What I want to do instead is, even if Store 2 is 30miles away(which is farther from Store 1) from the customer location, it contains both the order items. So, both the items should be picked up from Store 2 and delivered to the respective customer.
What according to you is the right approach to focus on picking up maximum/all order items of a single/multiple orders from single store?