cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to implement selection of warehouse based on the shipping address in an order?

Former Member
0 Likes
429

Hello experts ,

How to implement warehouse selection based on the shipping address in order? nearest warehouse to the shipping address

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

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