如何为提供托儿服务的小型企业使用 "offers"?
How to use "offers" for small business that offers childcare services?
使用 Google Rich Snippet 将我的业务呈现为 ChildCare
("A Childcare center.") 我如何指出我在设施中提供的服务(程序)为 Offer
在 itemprop="offers"
中?
例如,我在 "Infant, Toddlers, and Preschoolers" 的儿童保育类项目中提供 3 项服务(项目)。我如何使用优惠来指向这些服务及其选项?
如果您想将服务建模为 Offer
, you can use the makesOffer
属性 来自 ChildCare
:
<div itemscope itemtype="http://schema.org/ChildCare">
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Infants</span>
</div>
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Toddlers</span>
</div>
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Preschoolers</span>
</div>
</div>
如果您想将服务建模为来自 Service
的 Service
, you can use the provider
属性:
<!-- because itemref gets used, this element may not be a child of another Microdata item -->
<div itemprop="provider" itemscope itemtype="http://schema.org/ChildCare" id="the-childcare-business">
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Infants</span>
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Toddlers</span>
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Preschoolers</span>
</div>
主要区别在于您可以为 Offer
提供价格 (price
/priceCurrency
),但不能为 Service
提供价格。
您当然也可以同时使用这两种类型。
使用 Google Rich Snippet 将我的业务呈现为 ChildCare
("A Childcare center.") 我如何指出我在设施中提供的服务(程序)为 Offer
在 itemprop="offers"
中?
例如,我在 "Infant, Toddlers, and Preschoolers" 的儿童保育类项目中提供 3 项服务(项目)。我如何使用优惠来指向这些服务及其选项?
如果您想将服务建模为 Offer
, you can use the makesOffer
属性 来自 ChildCare
:
<div itemscope itemtype="http://schema.org/ChildCare">
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Infants</span>
</div>
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Toddlers</span>
</div>
<div itemprop="makesOffer" itemscope itemtype="http://schema.org/Offer">
<span itemprop="name">For Preschoolers</span>
</div>
</div>
如果您想将服务建模为来自 Service
的 Service
, you can use the provider
属性:
<!-- because itemref gets used, this element may not be a child of another Microdata item -->
<div itemprop="provider" itemscope itemtype="http://schema.org/ChildCare" id="the-childcare-business">
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Infants</span>
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Toddlers</span>
</div>
<div itemscope itemtype="http://schema.org/Service" itemref="the-childcare-business">
<span itemprop="name serviceType">Childcare for Preschoolers</span>
</div>
主要区别在于您可以为 Offer
提供价格 (price
/priceCurrency
),但不能为 Service
提供价格。
您当然也可以同时使用这两种类型。