Menu
實體定義了選單項目、優惠和菜單等屬性
專區。
定義 Menu
實體時,請使用
Menu
類型。
使用 MenuSection
將 MenuItem
物件整理成邏輯類別。如果餐廳
有多個選單例如,某間餐廳的菜單可能會有不同
早餐、午餐和晚餐每個選單都可以新增為獨立的 MenuSection
。
每個菜單項目都可以包含說明、圖片、附加資訊和營養資訊
可能不準確或不適當優惠是用於設定菜單品項的價格,並定義
商品推出時間,並定義特價生效的時間。資料
每次上傳資料動態饋給後,「Menu
」實體應該都會變更並重新整理。
選單實體範例
以下範例定義了具有兩個不同選單的基本 Menu
實體
專區。
{
"@type":"Menu",
"@id":"menu_1"
}
{
"@type":"MenuSection",
"@id":"menu_1_pizza",
"menuId":{
"@id":"menu_1",
"displayOrder":1
},
"name":"Pizza"
}
{
"@type":"MenuItem",
"@id":"menu_1_pizza_cheese",
"name":"Cheese Pizza - Large",
"description":"Four cheese pizza with marinara sauce.",
"parentMenuSectionId":{
"@id":"menu_1_pizza",
"displayOrder":1
}
}
{
"@type":"MenuItemOffer",
"@id":"menu_1_pizza_cheese_offer",
"sku":"6680306",
"menuItemId":"menu_1_pizza_cheese",
"price":20.5,
"priceCurrency":"USD"
}
{
"@type":"MenuItem",
"@id":"menu_1_pizza_pesto",
"name":"Pesto Primavera Pizza - Large",
"description":"Pesto with pancetta and freshly sliced tomatoes.",
"parentMenuSectionId":{
"@id":"menu_1_pizza",
"displayOrder":2
}
}
{
"@type":"MenuItemOffer",
"@id":"menu_1_pizza_pesto_offer",
"sku":"9825028",
"menuItemId":"menu_1_pizza_pesto",
"price":23.5,
"priceCurrency":"USD"
}
{
"@type":"MenuSection",
"@id":"menu_1_pasta",
"menuId":{
"@id":"menu_1",
"displayOrder":2
},
"name":"Pasta"
}
{
"@type":"MenuItem",
"@id":"menu_1_pasta_spag",
"name":"Spaghetti",
"description":"With meat sauce and meatballs.",
"parentMenuSectionId":{
"@id":"menu_1_pasta",
"displayOrder":1
}
}
{
"@type":"MenuItemOffer",
"@id":"menu_1_pasta_spag_offer",
"sku":"6680300",
"menuItemId":"menu_1_pasta_spag",
"price":15.75,
"priceCurrency":"USD"
}
{
"@type":"MenuItem",
"@id":"menu_1_pasta_spin_ling",
"name":"Spinach Linguini",
"description":"Grilled chicken breast, shiitake mushrooms, fresh Roma tomato,
garlic, and fresh herbs.",
"parentMenuSectionId":{
"@id":"menu_1_pasta",
"displayOrder":2
}
}
{
"@type":"MenuItemOffer",
"@id":"menu_1_pasta_spin_ling_offer",
"sku":"6680312",
"menuItemId":"menu_1_pasta_spin_ling",
"price":15.75,
"priceCurrency":"USD"
}