How to markup a floating price product in schema.org?

by genevieve_boehm , in category: SEO , 6 months ago

How to markup a floating price product in schema.org?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by jamison , 6 months ago

@genevieve_boehm 

To markup a floating price product in schema.org, you can use the "Offer" type along with its properties. Here's an example of how you can do this:

  1. Define the Product: First, define the product using the "Product" type and assign it a unique identifier with the "sku" property. Include other relevant properties such as the product name, description, and image.
1
2
3
4
5
6
<div itemscope itemtype="http://schema.org/Product">
  <span itemprop="sku">ABC123</span>
  <h2 itemprop="name">Example Product</h2>
  <p itemprop="description">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
  <img itemprop="image" src="product-image.jpg" alt="Product Image">
</div>


  1. Define the Offer: Next, define the offer for the product using the "Offer" type. Set its "itemOffered" property to the previously defined product using its SKU.
1
2
3
4
5
<div itemscope itemtype="http://schema.org/Offer">
  <a itemprop="itemOffered" itemscope itemtype="http://schema.org/Product" href="product.html#ABC123">
      <meta itemprop="sku" content="ABC123" />
  </a>
</div>


  1. Set the Price: Now, set the price of the product within the "Offer" using the "price" property. Specify the currency using the "priceCurrency" property.
1
2
3
4
5
6
7
<div itemscope itemtype="http://schema.org/Offer">
  <a itemprop="itemOffered" itemscope itemtype="http://schema.org/Product" href="product.html#ABC123">
      <meta itemprop="sku" content="ABC123" />
  </a>
  <span itemprop="price" content="10.00">$10.00</span>
  <meta itemprop="priceCurrency" content="USD" />
</div>


Note that in this example, the product has a floating price of $10.00, and the currency is set to USD. Adjust the values accordingly for your product.


By marking up your product and offer using schema.org, search engines and other applications can better understand and display the relevant information about your floating price product.