Documentation/Bundles

From GoodRelations Wiki
Jump to: navigation, search

Bundles

Construction.png
Work in progress: This page is an incomplete draft. Please help to improve it by addressing the issues from the discussion page and remove this template when finished.


<div itemscope itemtype="http://schema.org/Offer" itemid="#offer" >
  <span itemprop="name">Special offer: 1 cellphone + 2 travel chargers</span>
  <link itemprop="http://schema.org/businessFunction" 
        href="http://purl.org/goodrelations/v1#Sell" />
  <div itemprop="http://schema.org/includesObject" itemref="p1"></div
  <div itemprop="http://schema.org/includesObject" itemref="p2"></div
<div>

<div id="p1" itemscope itemtype="http://schema.org/TypeAndQuantityNode">
  <meta itemprop="amountOfThisGood" content="1">
  <meta itemprop="unitCode" content="C62">
  <div itemprop="typeOfGood" 
       itemscope itemtype="http://schema.org/Product" itemid="#cellphone">
    <span itemprop="name">ACME Cellphone BulkyTalky</span>
    EAN: <span itemprop="http://schema.org/gtin13">1234567890123</span>
  </div>
</div
<div id="p2" itemscope itemtype="http://schema.org/TypeAndQuantityNode">
  <meta itemprop="amountOfThisGood" content="2">
  <meta itemprop="unitCode" content="C62">
  <div itemprop="typeOfGood" 
       itemscope itemtype="http://schema.org/Product" itemid="#charger">
    <span itemprop="name">ACME Travelcharger</span>
    EAN: <span itemprop="http://schema.org/gtin13">2345678901234</span>
  </div>
</div>