The Item Variants API allows you to manage the pricing options applied to menu items. Item variants are determined by specific parameters like size, base ingredient, quantity and other customizable attributes. For example, you can have a raspberry lemonade with sizes "small", "medium", and "large", where pricing for each size is different.
The same item variant can be used across various menu items for better flexibility and consistency.
With the Item Variants API, you can:
It's important to note the following point before starting to code:
To use the Item Variants API, import { itemVariants }
from wix-restaurants.v2:
Menu: A list of food and beverage items available for purchase at a restaurant.