New Shopify Certification now available: Liquid Storefronts for Theme Developers

Setting Customer Language / Locale during Storefront API User Creation Process

RacerfishDiego
Tourist
4 0 2

We're integrating Shopify into our CMS via Storefront API - this works perfectly well, even developing Multi-Language Stores with Checkout in different locales, but i can't find any info on how it is possible to define in which language the customer activation emails are sent if we trigger them via Account Creation / Reset functions via Storefront API Calls.

 

I looked all over the API Documentation but there doesn't seem to be a way to submit some kind of Language or Locale to the Customer Creation Process - the Confirmation E-Mail is always being sent in the default Store Language set in the Shopify Configuration.

 

It works perfectly for the Checkout as the Locale can be added to the Checkout URL when redirecting but there is no such field in the Storefront API. Setting the HTTP "Accept-Language" Header as described in the Translation API doesn't help either as this seems to work only with specific Product Translations.

 

Has anybody managed to find a way to submit the current locale to the Storefront API functions in order to get Transactional E-Mails automatically sent in different Languages and have the Customer? I hope you can point me in the right direction.

Replies 3 (3)
Mammouth
Tourist
15 0 2

in you create_customer form, you can pass customer[tags] as hidden

 

<input type="hidden" name="customer[tags]" value="lng:en">

SalTb
Visitor
2 0 1

Did you ever figure out how to assign a specific language when creating new customers accounts?

SalTb
Visitor
2 0 1

No I did not. When i create the costumer account myself it is always English. When it is done on the costumer end, they can chose their language.