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.
ul > li > meta
when just meta would do fine. Also, you could use<li temprop="telephone">00188341534</li>
, only use spans and element elements for styling, or when you absolutely have no other choice. The examples on Schema, are purely for example purposes only. You can use itemtype and itemprop on all containers, such as<main>
,<ul>
,<header>
,<body>
,<html>
,<h1>
,<p>
,<li>
,<ul>
,<section>
and so on.