Gmail 中用于搜索中答案的发票收据
Invoice Receipts in Gmail for Answers In Search
我在 google 脚本 https://goo.gl/pKUc7D to test order / invoice reciept markup from Google's own documentation at https://developers.google.com/gmail/markup/reference/order
创建代码
没用。我可能会遗漏什么?结构化数据测试工具为脚本文本区域中的所有内容提供了绿色检查。我将 github 结果与运行 whmcs 计费软件的任何其他人分享。
我不熟悉 WHMCS 计费软件及其工作原理。我检查了你的样品,我有点困惑。我看到你正在使用:
http://schema.org/Invoice
Gmail/Inbox 不支持此功能。您必须遵循 documentation 上订单的微数据示例。我注意到即使您的标记已通过电子邮件标记测试器检查过,但这并不意味着它会受到支持。
我从您的 sample data 中提取了详细信息并为您创建了一个示例。
<div itemscope itemtype="http://schema.org/Order">
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="StrikeHawk eCommerce, Inc."/>
</div>
<meta itemprop="orderNumber" content="8360"/>
<meta itemprop="priceCurrency" content="USD"/>
<meta itemprop="price" content="10.71"/>
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Hosting" />
<link itemprop="image" href="https://lh4.googleusercontent.com/-U20_IAhRras/Uuqtev8Na3I/AAAAAAAAAIc/ptToUbM6cAY/s250-no/google-plus-photo.png"/>
</div>
<meta itemprop="price" content="5.35"/>
<meta itemprop="priceCurrency" content="USD"/>
<div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
<meta itemprop="value" content="1"/>
</div>
</div>
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Addon" />
<link itemprop="image" href="https://lh4.googleusercontent.com/-U20_IAhRras/Uuqtev8Na3I/AAAAAAAAAIc/ptToUbM6cAY/s250-no/google-plus-photo.png"/>
</div>
<meta itemprop="price" content="5.35"/>
<meta itemprop="priceCurrency" content="USD"/>
<div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
<meta itemprop="value" content="1"/>
</div>
</div>
<div itemprop="billingAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="Denver Prophit Jr" />
<meta itemprop="streetAddress" content="P.O. Box 0595" />
<meta itemprop="addressLocality" content="New Smyrna Beach" />
<meta itemprop="addressRegion" content="FL" />
<meta itemprop="addressCountry" content="United States" />
</div>
<link itemprop="orderStatus" href="http://schema.org/OrderProcessing"/>
<meta itemprop="isGift" content="false"/>
<meta itemprop="discount" content="0.00"/>
<meta itemprop="discountCurrency" content="USD"/>
<link itemprop="url" href="https://www.google.com/+StrikehawkeComm"/>
<div itemprop="customer" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Denver Prophit Jr"/>
</div>
这将触发一个查看订单按钮,将您的客户引导至 "invoice/receipt." 另请注意,我使用了 discount 属性,我在您的微数据中注意到了折扣被识别为购买的物品。
哦,另外,如果您要发送账单,请将 orderStatus 设置为:
<link itemprop="orderStatus" href="http://schema.org/OrderPaymentDue"/>
希望对您有所帮助。
我在 google 脚本 https://goo.gl/pKUc7D to test order / invoice reciept markup from Google's own documentation at https://developers.google.com/gmail/markup/reference/order
创建代码没用。我可能会遗漏什么?结构化数据测试工具为脚本文本区域中的所有内容提供了绿色检查。我将 github 结果与运行 whmcs 计费软件的任何其他人分享。
我不熟悉 WHMCS 计费软件及其工作原理。我检查了你的样品,我有点困惑。我看到你正在使用:
http://schema.org/Invoice
Gmail/Inbox 不支持此功能。您必须遵循 documentation 上订单的微数据示例。我注意到即使您的标记已通过电子邮件标记测试器检查过,但这并不意味着它会受到支持。
我从您的 sample data 中提取了详细信息并为您创建了一个示例。
<div itemscope itemtype="http://schema.org/Order">
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="StrikeHawk eCommerce, Inc."/>
</div>
<meta itemprop="orderNumber" content="8360"/>
<meta itemprop="priceCurrency" content="USD"/>
<meta itemprop="price" content="10.71"/>
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Hosting" />
<link itemprop="image" href="https://lh4.googleusercontent.com/-U20_IAhRras/Uuqtev8Na3I/AAAAAAAAAIc/ptToUbM6cAY/s250-no/google-plus-photo.png"/>
</div>
<meta itemprop="price" content="5.35"/>
<meta itemprop="priceCurrency" content="USD"/>
<div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
<meta itemprop="value" content="1"/>
</div>
</div>
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Addon" />
<link itemprop="image" href="https://lh4.googleusercontent.com/-U20_IAhRras/Uuqtev8Na3I/AAAAAAAAAIc/ptToUbM6cAY/s250-no/google-plus-photo.png"/>
</div>
<meta itemprop="price" content="5.35"/>
<meta itemprop="priceCurrency" content="USD"/>
<div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
<meta itemprop="value" content="1"/>
</div>
</div>
<div itemprop="billingAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="Denver Prophit Jr" />
<meta itemprop="streetAddress" content="P.O. Box 0595" />
<meta itemprop="addressLocality" content="New Smyrna Beach" />
<meta itemprop="addressRegion" content="FL" />
<meta itemprop="addressCountry" content="United States" />
</div>
<link itemprop="orderStatus" href="http://schema.org/OrderProcessing"/>
<meta itemprop="isGift" content="false"/>
<meta itemprop="discount" content="0.00"/>
<meta itemprop="discountCurrency" content="USD"/>
<link itemprop="url" href="https://www.google.com/+StrikehawkeComm"/>
<div itemprop="customer" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="Denver Prophit Jr"/>
</div>
这将触发一个查看订单按钮,将您的客户引导至 "invoice/receipt." 另请注意,我使用了 discount 属性,我在您的微数据中注意到了折扣被识别为购买的物品。
哦,另外,如果您要发送账单,请将 orderStatus 设置为:
<link itemprop="orderStatus" href="http://schema.org/OrderPaymentDue"/>
希望对您有所帮助。