Hello everyone, I’m having trouble defining the location when I add a product to an order and I think you might be able to help me understand if I’m the only one having this problem.
When adding a product variant through the orderEditAddVariant mutation (orderEditAddVariant - GraphQL Admin) using the locationId argument, I ran into an unexpected situation.
Result: The product was added to the order, but in another location and with another shipping method (the order was for pickup and the fulfillmentOrder that was added was for shipping).
Expected result: The product would simply be added to the location informed in the mutation
Relevant points:
- The product is in stock in all locations;
- The location that is assigned is not the one informed nor the default. It is the first location created (smallest Location Id).