gpt4 book ai didi

microdata - schema.org/microdata - 产品还是优惠?

转载 作者:行者123 更新时间:2023-12-03 08:12:09 27 4
gpt4 key购买 nike

我在使用 MicroFormats 和确定要使用的项目类型(产品或优惠)时遇到问题。我已经使用 Offer 向我们销售的各种产品添加数据(每页 1 个)。尽管这在 Google 结构化数据测试工具中得到了正确验证,但它不会在结果中显示价格/评级/库存。如果我使用 Product 和 Offer 的混合物,那么虽然我不确定这是正确的方法吗?

谢谢,

瑞克

<title>My Tent</title>
<div itemscope itemtype="http://schema.org/Offer">
<div itemprop="name" class="product-details-title" id="item_product_prop">My Tent</div>
<div itemprop="description" id="item_product_prop">A Description for MyTent</div>
<meta itemprop="aggregateRating" id="item_product_prop" content="[3 Ratings]">
<div id="item_product_prop" itemprop="price">$13</div>
<div itemprop="availability" id="item_product_prop" content="InStock"></div></div>
</div>

http://www.google.com/webmasters/tools/richsnippets?q=uploaded:8004e1c78c1098daa7aa283c26b42939

最佳答案

schema.org/Product 提供了很好的例子页。将其用作引用示例,您将得到您想要的。

<div itemscope itemtype="http://schema.org/Product">
<span itemprop="name">Kenmore White 17" Microwave</span>
<img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' />
<div itemprop="aggregateRating"
itemscope itemtype="http://schema.org/AggregateRating">
Rated <span itemprop="ratingValue">3.5</span>/5
based on <span itemprop="reviewCount">11</span> customer reviews
</div>

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
<span itemprop="price">$55.00</span>
<link itemprop="availability" href="http://schema.org/InStock" />In stock
</div>
</div>

结果是

enter image description here

关于microdata - schema.org/microdata - 产品还是优惠?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17722371/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com