0

I am using the distance priority algorithm for source selection of the inventory. I want to assign a particular source to a product if the nearest available source is greater than 20km distance. Is it possible?

1

You should tweak the method

\Magento\InventoryDistanceBasedSourceSelection\Model\Algorithms\DistanceBasedAlgorithm::getEnabledSourcesOrderedByDistanceByStockId

This method sorts sources by distances.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.