Shopify products do not have a location field, but here is a simple workaround.
Many of our Shopify customers need to have a location field for their products and variants transferred to Webshipper. However, Shopify does not have a field for such information today.
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.
Comments
0 comments
Please sign in to leave a comment.