Product detail event
Variant has changed
Last updated
Variant has changed
Last updated
Selecting variant from variant picker of Smind
This event is fired whenever a user has changed the variant in a product selector, either in a product page, featured product section or quick view and quick add section
variant:change
variant: Is an object variant of Shopify ()
The "change variant" event will be listened to by other components to update related elements such as product price, inventory status, SKU, add to cart button, and checkout.
Example usage:
Changing the product variant without using Smind’s variant picker.
If you're replacing the variant selection using Smind’s variant picker with a third-party solution, please make sure to dispatch an event after selecting a variant so that other components can listen for the variant change.
Example usage:
The section container that includes the variant picker
Object variant that selected
The variant change event must be named "variant:change" and must include a variant object with the same structure as Shopify's default variant object. ()