Checkout : Customer Locale

Blessy
New Member
7 0 0

How does customer-locale value in checkout api response determined? is it from browser settings ?

Replies 3 (3)
KarlOffenberger
Shopify Partner
1873 184 890

Good question.

Did a quick test using browsers in different locales but customer_locale was always "en" which is also what the store locale is. Thus, I suspect any orders placed via the store will extend that locale to the customer_locale.

@Shopify - clarification?

Liked this post? You might also like our fantastic upsell apps Candy Rack, Last Upsell post-purchase and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
KarlOffenberger
Shopify Partner
1873 184 890

Hmm, even after changing the stores language to "de", still customer_locale remains "en". Confusing.

Liked this post? You might also like our fantastic upsell apps Candy Rack, Last Upsell post-purchase and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
fhferreira
New Member
1 0 0

We can send "order" customer_locale through the API or not? SHOPIFY said that param is "read-only" on API doc. 

https://shopify.dev/docs/admin-api/rest/reference/orders/order#create-2021-01