Nearest store stock based on customer ZIP code

Good morning, @HigorDev!

So… There’s no way to prioritize stock and dock based on order location. The platform uses the following default rules:

Stock Priority:

Documentation: É possível definir prioridade de estoque em minha loja?

Dock selection:

In terms of logistics combination, the article below mentions that the following criteria are considered when calculating priority, in this order:

  1. Fewest number of shipments.
  2. Lowest shipping price, already accounting for applicable surcharges and promotions.
  3. Shortest delivery time, adding up the total cost time from the warehouse to the carrier plus overhead.
  4. The priority set on the dock, where the one with the highest value wins.

Beyond prioritization, there are other factors considered when choosing a stock location:

  1. Highest available quantity of the SKU.
  2. Shortest route time between stock and dock.
  3. Lowest route cost between stock and dock.

Documentation: How shipping calculation works

You can, in a way, “force” a stock location to have a better chance of being selected. For example: within your stock locations, set different processing times for the same dock, so as to give a “advantage” to the stock you want to prioritize. If all other conditions (cost times, dock priority, etc.) are equal, but one stock location has a shorter processing time than another, it will be prioritized.

Karina Mota
Field Software Engineer | VTEX