"size" event
The shopper chose a size in our window (“Use this size”): preselect that variant.
size: SizeEvent;Payload
Section titled “Payload”productstringRequiredsizestringRequiredverifiedbooleanRequiredTrue when the size comes from a completed try-on on the shopper's body.
Example
Section titled “Example”guide.on("size", ({ product, size }) => { if (product === currentSku) sizePicker.value = size;});<FitButton product="SKU-123" onSize={({ size }) => setSize(size)} />el.addEventListener("tys:size", (e) => (sizePicker.value = e.detail.size));Was this page helpful?
Thank you. We read every answer.