Skip to content

Restrict the checkout In-Store Delivery pickup-up locations to products that have available inventory

We’re running Magento 2.4.5 with the MSI module and using the In-Store Delivery shipping method. I would like to change the In-Store Delivery store locator on the checkout page, so that a location will only be available if each product in the cart has available inventory at that source location.

Here is an example of the desired outcome:
Store Locator Mockup

I’ve been trying to find the class or javascript module that returns the values in the postcode/zipcode lookup form to extend it to check product availability. Can anyone point me in the right direction? I’ve been searching through the vendor/magento/module-inventory-in-store-pickup* modules and haven’t been able to find it.

Also, is this the correct strategy to only allow locations with stock availability?