Methods
updateProductJSONΒΆ
Updates the Product JSON with locale-aware data
If you're using Shopify Markets, this will allow you to fetch data for products specific to that market. This allows product variant titles to be translated.
See this example for how this is used
--- title: Methods excerpt: Update product JSON with market-specific translations deprecated: false hidden: false metadata: title: '' description: '' robots: index next: description: '' --- ## updateProductJSON Updates the Product JSON with locale-aware data If you're using Shopify Markets, this will allow you to fetch data for products specific to that market. This allows product variant titles to be translated. See [this example](shopifystorefront-helper-examples.md#update-product-json) for how this is used ```javascript title="ShopifyStorefrontHelper.updateProductJSON(product, callback);" ```