on 2018 Dec 11 1:18 PM
Hello experts ,
How to implement warehouse selection based on the shipping address in order? nearest warehouse to the shipping address
Thanks in advance.
Request clarification before answering.
Hi
OOTB there’s no such functionality. You’ll need some customization to achieve what you want.
First please get familiarize with this - https://help.hybris.com/1811/hcd/8c28d69a866910148c898b38e5ae7cfb.html
Then you’ll need to learn a little about warehouse filters.
Warehouse filters allow you to discard a subset of warehouses from the given set of warehouses. WarehousesFilterProcessor contains a collection of these filters and applies them one after the other to finally obtain the optimal set of warehouses.
Please visit a link below:
https://help.hybris.com/1811/hcd/5a8764a4d66e45dcaa6602c9103d0253.html
The most important part of this document is “Extending Filters” section.
So you’ll need to create a custom filter, remember that it has to implement WarehousesFilter interface. In the file above there’s also an example of how to use that filter.
There’s a service that might help you with location.
de.hybris.platform.commerceservices.storefinder.impl.DefaultStoreFinderService
Best regards,
Błażej Wcisło
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.