Mobile app version of vmapp.org
Login or Join
XinRu657

: How to use price range inside "Offer" type? I have category pages that contain products. Some of the products have fixed prices and some of the products have price ranges. Also any product

@XinRu657

Posted in: #Ecommerce #Microdata #SchemaOrg

I have category pages that contain products. Some of the products have fixed prices and some of the products have price ranges.

Also any product has a seller that must be inside Offer. Right? So I must use the Offer type and I can not using PriceSpecification. Am I wrong?

How can I use Microdata with this condition?

A product with price range in my product list page:

<li itemscope itemtype="http://schema.org/Product" >
<span itemprop="name" >ProductName</span>

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">

<ul>
<li><meta itemprop="maxprice" content="1000000" /><meta itemprop="minprice" content="10000" />
<meta itemprop="priceCurrency" content="USD" />
from 10,000 to 1,000,000 USD</li>

</ul>

<div itemprop="seller" itemscope itemtype="http://schema.org/Organization">
<ul>

<li><span itemprop="telephone" >00188341534</span></li>
</ul>
</div>

<div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="addressLocality">Washington</span></div>


I need valid code look like this. But this code is not valid.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @XinRu657

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

You can have a PriceSpecification for the Offer, by using the priceSpecification property:

<article itemscope itemtype="http://schema.org/Product">

<div itemprop="offers" itemscope itemtype="http://schema.org/Offer">

<div itemprop="priceSpecification" itemscope itemtype="http://schema.org/PriceSpecification">
</div>

</div>

</article>


And inside the PriceSpecification, you can use the minPrice and maxPrice properties. (Note that they are case-sensitive.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme