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 Answer 1

1

You should tweak the method

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

This method sorts sources by distances.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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