Changing Customer Language/Locale within Shopify Flow

Drazdauskas
Excursionist
43 0 11

Hey Everyone,

I'm trying to change the customer's default language which I believe is set by "customer.locale" based on specific tags which are created on the customer profile.

See screenshot below, this is what I'm looking to change.

Shopify Comm 1.jpg

This is how I have set the flow up so far:-

Customer Created ---> Check if Tag = "German Language" ----> Action

Shop Comm 2.jpg

Now I just need help with the Action part... but I also need to make sure this is even possible.

If anyone can help please let me know

Replies 7 (7)

paul_n
Shopify Staff
1062 136 250

You would need to update the customer locale using Send HTTP Request calling:
https://shopify.dev/docs/api/admin-graphql/2023-07/mutations/customerUpdate

 

Paul_N | Flow Product 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.
Drazdauskas
Excursionist
43 0 11

Can you maybe dumb your reply down abit - not sure exactly what to do 😅

paul_n
Shopify Staff
1062 136 250

There's a few prior posts you should consult about how to call an API from Flow. For example:

https://community.shopify.com/c/shopify-flow-app/auto-fulfil-item-with-http-request/m-p/2090245

 

You'll need to create an custom app with the right scopes to get an API key. They follow the above. 

Paul_N | Flow Product 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.
Drazdauskas
Excursionist
43 0 11

Thanks for the response Paul, really appreciate it

I may need to speak with someone who can help us with this though, as its a little out of my realm 

priape
Shopify Partner
13 0 0

Ever been able to have this to work?

Vicko1
Shopify Partner
4 0 4

Isn't this something that could be achieved with "Update Customer Field" action? 

ocs-anna
Shopify Partner
7 0 0

Please use customers locale variables. It will help you identify and change customer selected language. Please update via shopify API

Thanks
Annadurai