No liquid support for variants above 250

Hi, thanks for your patiences on this one @Ilana_Davis.

We’ve landed on a solution that we believe will provide the best outcomes:

1) { product | structured_data } always includes the current variant

We’ve updated the structured_data tag to ensure the variant currently rendered is always included. The structured data will also include up to 250 variants total. We recommend taking a similar approach if building structured data on your own. Use the selected_or_first_available_variant (docs) property to ensure you’ve included this along with the product.variants array.

2) Variants beyond the 250 can be rendered with javascript

If a product has >250 variants, we recommend appending to or replacing the liquid rendered structured data block on the client. This data can be fetched via clientside javascript from the Storefront API, which can now be called without a token.

The combination of (1) and (2) ensures that if google/crawlers do not wait for javascript to render, the current variant and an initial set are still visible.

Please let us know if you have any questions. Thanks!