Configure the Source Priority Algorithm

Custom stocks include an assigned list of sources to sell and ship available product inventory through your storefront. This algorithm uses the order of assigned sources in your stock to make recommendations.

When run, the algorithm:

  • Works through the configured order of sources at the stock level starting at the top

  • Recommends a quantity to ship and source per product based on the order in the list, available quantity, and quantity ordered

  • Continues down the list until the order shipment is filled

  • Skips disabled sources if found in the list

To configure, arrange those sources from top to bottom in priority for fulfilling orders. The Source Selection Algorithm (SSA) provides an algorithm Priority using this order when determining shipment and inventory deductions. See Prioritizing Sources for a Stock.

Configure the priority of sources

  1. On the Admin sidebar, go to Stores > Inventory > Stocks.

  2. Open a stock in edit mode and navigate to the Sources area.

  3. Click Assign Sources.

  4. In the Assign Sources view, select the checkbox for the required source, and then click Done to assign a source to the stock.

NOTE
When using the Distance Priority algorithm for shipping, if routes and data do not return for the selected Computation mode (driving, bicycling, or walking) for a shipment, the SSA defaults to using the Source Priority.

Source order after prioritization

Icons
Description
drag and drop the icon to set priority
Use to drag and drop sources according to priority.
click icon to unassign a source
Unassigning a source to a stock.
recommendation-more-help
c1792860-ac60-428b-ad4b-59517d4ea712