Item Variants: Sample Use Cases & Flows
This article presents possible use cases and corresponding sample flows that your app can support. It provides a useful starting point as you plan your app's implementation.
Sync pizza menu across all sites
If you have several pizzeria sites that use your app you might need to sync menu across those sites. For example, if there are new variants for a drink called "Small", "Medium", and "Large", this change also needs to be reflected on other sites.
To sync the pizza menu across all sites:
- Call Query Variants by the
name
field on the site where you updated the menu. - Extract all 3
variant.name
field values. - Call Bulk Create Variants for your other sites and pass the new variants to each.
- Call Update Item and add the new variant IDs to the
item.priceVariants.variants
array.
Was this helpful?
Yes
No