Google Shopping keeps warning me that my product pages lack the microdata of price, availability and condition. My feed still works but perhaps it would perform better if this microdata was included.
To include the bare minimum I have adjusted an example I found in google developers pages, and a bit from an old post of Normans.
Before I implement it I was wondering if anyone else had done this and does my code look right?
I intend to place it within the body of the product page template.
Is there a better way to implement the In Stock/Out of Stock variable?
To include the bare minimum I have adjusted an example I found in google developers pages, and a bit from an old post of Normans.
Before I implement it I was wondering if anyone else had done this and does my code look right?
I intend to place it within the body of the product page template.
Is there a better way to implement the In Stock/Out of Stock variable?
Code:
<body> <div itemscope itemtype="http://schema.org/Product"> <span itemprop="name"><actinic:variable name="ProductName" /></span> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="priceCurrency" content="GBP" />£ <span itemprop="price"><actinic:variable name="ProductPriceRaw" /></span> <meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition" content="http://schema.org/NewCondition"/>New <actinic:block if="%3cactinic%3avariable%20name%3d%22IsInStock%22%20%2f%3e" > <meta itemprop="availability" href="http://schema.org/InStock" />In stock </actinic:block> </div> </div> </body>
Comment