我試圖模擬您作爲客戶已經從在線網上商店訂購產品並想要跟蹤包裹的場景。Google Now ParcelDelivery orderStatus創建兩張牌
因此,我目前正在創建3個標記爲電子郵件(因爲它可能會在現實生活中),第一封電子郵件是訂單確認郵件,第二封電子郵件是「順序訂購」,第三封電子郵件是「已發貨」。幾乎所有三封電子郵件中的內容都一樣。 這些電子郵件中的差異是orderStatus,將顯示卡上:
「orderStatus」: 「[...]/OrderProcessing」
「orderStatus」:「[...]/OrderInTransit」
「orderStatus」: 「[...]/OrderDelivered」(不能發佈超過2個鏈接。)
這裏是我的確認郵件標記大氣壓:
<!DOCTYPE html>
<html>
<head>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"name": "Firstname Lastname",
"streetAddress": "2nd Street",
"addressLocality": "City",
"addressRegion": "State",
"addressCountry": "Country",
"postalCode": "12345"
},
"expectedArrivalUntil": "2016-08-03T12:00-24:00",
"carrier": {
"@type": "Organization",
"name": "Shipping Company"
},
"itemShipped": {
"@type": "Product",
"name": "Test Product"
},
"trackingNumber": "1234567890",
"trackingUrl": "some url",
"partOfOrder": {
"@type": "Order",
"orderNumber": "555555",
"merchant": {
"@type": "Organization",
"name": "Some web shop"
},
"orderStatus": "http://schema.org/OrderProcessing"
}
}
</script>
</head>
<body>
<p>
Confirmation email
</p>
</body>
</html>
我試圖實現,這三個電子郵件應該只是更新顯示的第一張卡的訂單狀態。但是,在我發送確認電子郵件之後,當我發送「訂購途中」電子郵件時,會顯示另一張卡片。不知何故可以重寫這個嗎?我的意思是,作爲用戶,當您僅訂購1件產品時,您可能會感到困惑,因爲您擁有2張卡片。
Image after the first email is sent
Image after the second email is sent
對不起,在截圖瑞典的語言,但你也許可以明白我的意思呢。
編輯:出於某種原因,當我現在使用itemShipped.name =測試產品時,我得到一件很酷的夾克作爲圖像。 「訂單」
的
「@type」 而不是: