Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
We want to use Shopify Flow to decide which shipping box size is needed for a specific order. We would add to each of our physical products a metafield 'size score' where we store the size score each product*. For each order we then want to sum up the total size score and based on this, decide which shipping box should be used for the order. We would then add the right shipping box as a line item to the order.
The main question here now is: how can we calculate in Shopify Flow the total of all the 'size scores' accross all line items for an order? I currently don't see a way of accessing the metafield data per line item, but perhaps I am missing something?
Any help is greatly appreciated!
* We only have a limited number of product sizes & a size score of 1 reflects the size of our most common packaging size. All sizes are therefore scaled to this most common product. We only have three shipping box sizes, meaning we don't need very complex algorithms or apps like Boxify to make this work.
You might be able to loop over line items and then retreive a metafield value for the associated product_id or variant_id. I think you can only do one step under a for loop though - but then I think you might be able to pass all of that into a code step to sum them up.
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024