To customize how inventory sources are prioritized, developers must create a new Source Selection Algorithm (SSA). This is done by registering a new SSA in di.xml and implementing SourceSelectionInterface. This allows developers to define rules such as shipping address proximity or delivery cost.
B is partially correct: Distance Priority Algorithm exists, but implementing PlaceReservationsForSalesEventInterface is not the right way to customize selection logic.
C Source Priority Algorithm is fixed (based on predefined priority), not custom.
[Reference:, , Adobe Commerce DevDocs – Inventory Source Selection Algorithm, , Official Documentation Extracts:, “To customize source selection behavior, implement a custom Source Selection Algorithm (SSA). The algorithm must implement SourceSelectionInterface and be registered via dependency injection (di.xml).”— Adobe Commerce DevDocs: Custom Source Selection Algorithm, “Adobe Commerce provides default SSAs: Source Priority Algorithm and Distance Priority Algorithm. Custom SSAs can be created to satisfy specific business requirements such as delivery costs.”— Adobe Commerce Inventory Management Guide, , ]
Submit