Hi
Wrestling with getting this microdata in place on product pages. We've got the elusive green check with the code in the bottom of this post in the PROD template area, but it only picks up the last item in the product dropdown. Had anyone implemented this microdata successfully where it gets the attributes also?
We tried putting it in the Attribute Template area in various places as it looped through attributes/options, but must be missing correct placement, as we got dinged when checking our markup, or no product info shows up.
I did find something about adding Models - I am assuming we would need to iterate through each attribute/option to get the info, but I couldn't figure out how to get it to do what I need it to do. Has anyone done this successfully for products with different sizes/pricing? Google is not my friend today!
OUR CODE
:
The ProductModel add:
Wrestling with getting this microdata in place on product pages. We've got the elusive green check with the code in the bottom of this post in the PROD template area, but it only picks up the last item in the product dropdown. Had anyone implemented this microdata successfully where it gets the attributes also?
We tried putting it in the Attribute Template area in various places as it looped through attributes/options, but must be missing correct placement, as we got dinged when checking our markup, or no product info shows up.
I did find something about adding Models - I am assuming we would need to iterate through each attribute/option to get the info, but I couldn't figure out how to get it to do what I need it to do. Has anyone done this successfully for products with different sizes/pricing? Google is not my friend today!
OUR CODE
Code:
<!-- Start: Google Rich Snippets --> <div itemscope itemtype="http://schema.org/Product"> <meta itemprop="name" content="&mvte:product:name;" /> <meta itemprop="image" content="&mvt:global:socialImage;" /> <meta itemprop="category" content="&mvte:category:name;" /> <meta itemprop="description" content="&mvte:product:descrip;" /> <mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:brand"> <meta itemprop="brand" content="&mvte:product:customfield_values:customfields:brand;" /> </mvt:if> <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="size" content="&mvte:option:prompt" /> <meta itemprop="options" content="&mvt:attribute:raw_prompt;"/> <meta itemprop="price" content="&mvt:option:price;" /> <mvt:if expr="NOT ISNULL l.settings:product:sku"> <meta itemprop="sku" content="&mvte:product:sku;" /> <mvt:else> <meta itemprop="sku" content="&mvte:product:code;" /> </mvt:if> <meta itemprop="priceCurrency" content="USD" /> <meta itemprop="seller" content="&mvte:global:store:name;" /> <meta itemprop="itemCondition" content="new" /> <mvt:if expr="l.settings:product:inv_active"> <meta itemprop="availability" content="&mvte:product:inv_short;" /> <meta itemprop="inventoryLevel" content="&mvte:product:inv_available;" /> </mvt:if> </div> </div> <!-- End: Google Rich Snippets -->
The ProductModel add:
Code:
<div class="modelslist" > <div class="model" itemscope itemtype="http://schema.org/ProductModel"> <h2 itemprop="name">Model A</h2> <span itemscope itemtype="http://schema.org/Offer"> <meta itemprop="price" content="£123" /> <span itemscope itemtype="http://schema.org/PriceSpecification"> <span itemprop="price">£123</span> <meta itemprop="priceCurrency" content="GBP" /> <meta itemprop="valueAddedTaxIncluded" content="false" /> </span> </span> <span itemscope itemtype="http://schema.org/PropertyValue"> <meta itemprop="name" content="readability" /> <span itemprop="value">325</span> </span> </div> <div class="model" itemscope itemtype="http://schema.org/ProductModel"> <h2 itemprop="name">Model B</h2> <span itemscope itemtype="http://schema.org/Offer"> <meta itemprop="price" content="£456" /> <span itemscope itemtype="http://schema.org/PriceSpecification"> <span itemprop="price">£456</span> <meta itemprop="priceCurrency" content="GBP" /> <meta itemprop="valueAddedTaxIncluded" content="false" /> </span> </span> <span itemscope itemtype="http://schema.org/PropertyValue"> <meta itemprop="name" content="readability" /> <span itemprop="value">325</span> </span> </div> </div>
Comment