How to change Order Default Location

Hi Everyone,

I have a question about the Order Location: I have an order with location below

Here is the location data:
71534936368: Address 1

61717774640: 27-29 Av. des Louvresses

But the location_id when I get data from “admin/api/2022-10/orders” is 71534936368. It should be display “Address 1” instead of “27-29 Av. des Louvresses”.

Please help me explain as well how to display “Address 1” instead of “27-29 Av. des Louvresses”.

Thank you so much!

I have same problem → I would like to change the location for Fulfillment in the Order detail page.

And I found the way, using the graphql (FulfillmentOrderMove)

$fulfillmentOrderId_gid = sprintf('gid://shopify/FulfillmentOrder/%s', $fulfillmentOrderId);
$locationId_gid = sprintf('gid://shopify/Location/%s', $locationId);
$params = [
    'query' => 'mutation FulfillmentOrderMove($fulfillmentOrderId: ID!, $newLocationId: ID!) { fulfillmentOrderMove(id: $fulfillmentOrderId, newLocationId: $newLocationId) { userErrors { field message } } }',
    'variables' =>
        [
            'fulfillmentOrderId' => base64_encode($fulfillmentOrderId_gid),
            'newLocationId' => base64_encode($locationId_gid),
        ],
];

Hope it’s good for you!

1 Like

Thank you so much @nhupham

I have solved this problem with your solution.