Product locations in Shopify can be sent to Webshipper either directly through the integration, or by splitting SKU numbers with Location info at the end using Webshipper workflows.
If possible we highly recommend using the first option, but if you cannot use custom meta fields in your Shopify, option 2 will work just fine.
Option 1 - Configure on Shopify integration
If you are able to set up and configure custom meta fields on Products in Shopify, you can simply input the precise meta field data for product locations in this field on your Shopify settings in Webshipper:
To access these settings we have to open the Connect menu on the left-hand side, select your Shopify integration and once the right-hand side expands, you need to click the three small circles to find Edit order channel:
Option 2 - Split SKU to Location field in Webshipper with Workflows
Many of our Shopify customers need to have a location field for their products and variants transferred to Webshipper. Previously Shopify did not have a field for such information
In order to get around this problem, we recommend that you are using the SKU field with a separator. The separator is something that you decide, but in this example, we will use '-'. We will keep the SKU in the first part and the location in the second part of the field.
First, we will configure our Shopify product SKU as SKU-location as shown below:
Next, we have to create a Workflow in Webshipper to split the value of the SKU field into the 'SKU' and 'location' fields. Workflows are found in Webshipper under Settings > workflow.
The Workflow must be created with the trigger After an order is created. And then we are adding two actions. One for updating the order line SKU and another for updating the order line Location. Your Workflow should look like the following:
Placeholder 1 to attribute Location:
{% assign locsplit = line.sku | split: '/' %}{{locsplit | last}}
Placeholder 2 to attribute SKU:
{% assign skusplit = line.sku | split: '/' %}{{skusplit | first}}
And that's all that is needed. If you have multiple order channels, simply define your conditions to only trigger on order from your specific order channel.