Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Re: Updating variant shipping rates based on variant title

Updating variant shipping rates based on variant title

COEFFORT
Shopify Partner
8 0 0

Hi all!

I kinda need some help.  At the moment i am using an APP that gets triggered every time i update a variant and checks if in the variant title is present the word "express" and it dynamically changes the shipping rate accordingly. If it is present sets the variant to "express" shipping otherwise it sets it to the "standard" one. 

 

Besides the fact that i feel that something like this should be already in Shopify by default, do you guys know how to make it happen with Flow? 

 

Thanks! 

Riccardo 

Reply 1 (1)

DaveMcV
Shopify Staff
104 31 29

Hi @COEFFORT,

 

Flow doesn't yet offer a trigger for a generic Variant Changed event, but assuming one is available from a Partner app's connector or you can use something like the Product Variant Added trigger, the actions to make those changes are available.

It should be possible to change the shipping profile using the Send Admin API Request action that was launched today at Summer Editions. You'll need to use the deliveryProfileUpdate mutation to change the list of products in the specified shipping profile. Keep in mind, this allows for updating the whole profile. You'll want to focus on the variantsToAssociate and variantsToDissociate fields.

 

Hope that helps!

DaveMcV | Flow Development Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.