Solved

How to set country context when recalling checkout object using the JS Buy SDK

darthtong
Shopify Partner
2 1 0

Currently we're using the JS Buy SDK alongside the Storefront API, mainly to manage the checkout object. Using the Storefront API we're able to set a context and return localised prices using the country argument. For the checkout object to include this same localised behaviour for line items, a context is required to be set – is this possible?

Accepted Solution (1)

darthtong
Shopify Partner
2 1 0

This is an accepted solution.

Assuming it was not possible we ditched the Buy SDK and reimplemented the required functionality using the Storefront API.

View solution in original post

Reply 1 (1)

darthtong
Shopify Partner
2 1 0

This is an accepted solution.

Assuming it was not possible we ditched the Buy SDK and reimplemented the required functionality using the Storefront API.