我正在向gmail发送电子邮件,其中包含我的客户订单的跟踪代码。这个想法是gmail识别跟踪并在Android设备上的电子邮件消息和Google即时应用程序中显示信息。
我使用的代码是:
<html lang="es" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
</head>
<body link="#ff6000" alink="#ff6000" vlink="#ff6000">
<table width="658px" cellSpacing="0" cellPadding="0" style="margin: 0 auto; font-family: Arial; font-size: 13px; color: #333333;">
<tr>
<td><a href="http://www.example.com" target="_blank"><img src="http://www.example.com/images/email/cabecera.gif" alt="Logotipo" title="Logotipo" style="border: 0px; padding-bottom: 5px;" alt="Logotipo"/></a></td>
</tr>
<tr>
<td>
<div style="width: 650px; margin: 0 auto; border: 1px solid #e4dfd7; background-color: #f5f2ee; padding-top: 30px;">
<div style="background: url(http://www.example.com/images/email/fd-sup.gif) top center no-repeat; padding-top: 7px;">
<div style="background: url(http://www.example.com/images/email/fd-inf.gif) bottom center no-repeat; padding-bottom: 13px;">
<div style="background: #ffffff url(http://www.example.com/images/email/logotipo.gif) bottom left no-repeat; width: 481px; margin: 0 auto; border: 1px solid #dfdfdf; min-height: 250px;">
<div style="padding: 25px 40px 15px 40px"><p><div itemscope="" itemtype="http://schema.org/ParcelDelivery">
<div itemprop="deliveryAddress" itemscope="" itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="NAME"/>
<meta itemprop="streetAddress" content="ADDRESS"/>
<meta itemprop="addressLocality" content="CITY"/>
<meta itemprop="addressRegion" content="REGION"/>
<meta itemprop="addressCountry" content="ES"/>
<meta itemprop="postalCode" content="ZIP"/>
</div>
<div itemprop="originAddress" itemscope="" itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="company"/>
<meta itemprop="streetAddress" content="street"/>
<meta itemprop="addressLocality" content="City"/>
<meta itemprop="addressRegion" content="region"/>
<meta itemprop="addressCountry" content="ES"/>
<meta itemprop="postalCode" content="zip"/>
</div>
<meta itemprop="expectedArrivalFrom" content="2015-01-06T00:00:00-08:00"/>
<meta itemprop="expectedArrivalUntil" content="2015-01-08T00:00:00-08:00"/>
<div itemprop="carrier" itemscope="" itemtype="http://schema.org/Organization">
<meta itemprop="name" content="company"/>
</div>
<div itemprop = "itemShipped" itemscope="" itemtype = "http://schema.org/Product">
<meta itemprop = "name" content = "Engel RS 4800Y HD SAT WiFi" />
<link itemprop = "url" href = "http://www.example.com/engel_rs_4800y_hd_sat_wifi.html" />
<link itemprop = "image" href = "http://www.example.com/fotos/tv_satelite/engel_rs_4800_hd_sat_wifi.jpg" />
<meta itemprop = "sku" content = "52314" />
</div><meta itemprop="trackingNumber" content="0030180030181000367570001"/>
<link itemprop="trackingUrl" href="https://www.example.com/#showOrders"/>
<link itemprop="hasDeliveryMethod" href="http://schema.org/ParcelService"/>
<div itemprop="partOfOrder" itemscope="" itemtype="http://schema.org/Order">
<meta itemprop="orderNumber" content="order number"/>
<div itemprop="merchant" itemscope="" itemtype="http://schema.org/Organization">
<meta itemprop="name" content="company"/>
<link itemprop="sameAs" href="http://www.example.com"/>
</div>
<link itemprop="orderStatus" href="http://schema.org/OrderInTransit"/>
</div>
</div> <p>SOME TEXT HERE
</p>
</div>
</div>
</div>
</div>
<table width="100%" cellSpacing="0" cellPadding="0" style="padding: 10px 0 5px 0;">
<tr>
<td valign="bottom"><img src="http://www.example.com/images/email/tit-lideres.gif" style=" border:0px"></td>
<td style="text-align: right; font-weight: bold; padding: 5px 10px 5px 5px;">
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
问题是,在Google即时中会出现一张卡片,但只有文字&#34;订单已发送。原产地:公司的名称&#34;,但跟踪,订单号,物品等没有任何关系。我做错了什么?
提前谢谢。
答案 0 :(得分:0)
在谷歌现在的Track包中,它显示产品标题,产品图片以及订购网站的名称。
我看到您添加的标记中的产品图片网址不是有效网址,或该网址中没有图片。
<link itemprop = "image" href = "http://www.example.com/fotos/tv_satelite/engel_rs_4800_hd_sat_wifi.jpg" />
您可以参考here了解更多详情。
希望有所帮助!