Page 1 of 1

Google Microdata

PostPosted: Tue Sep 06, 2016 1:49 pm
by lneibauer
All,
I have in my template the code for the Google Microsdata so we can advertise in Google Shopping. On some of my product I am getting an error that says: (The property $8.95 is not a valid price specification. Learn more about http://schema.org/price.). The problem is my code is all the same on all 2000 products but only getting this error message on a handful of products. Below is the code I am using for the Microdata, can anyone see why I might be getting this error?

Code: Select all
<div itemscope itemtype="http://schema.org/Product">
    <meta itemprop="name" content="[-- PRODUCT.Name --]">
    <meta itemprop="sku" content="[-- PRODUCT.SKU --]">
    <meta itemprop="description" content="[-- PRODUCT.MoreInformationMetaDescription --]">

    <div itemprop="offers" itemscope itemtype="http://schema.org/Offer">
      <meta itemprop="priceCurrency" content="USD" />
      [-- IF PRODUCT.SaleAmount --]
      <meta itemprop="price" content="[-- PRODUCT.SaleAmount --]"/>
      [-- ELSE --]
      <meta itemprop="price" content="[-- PRODUCT.Price --]"/>
      [-- END_IF --]
      <meta itemprop="itemCondition" itemtype="http://schema.org/OfferItemCondition"  content="[-- Product.GoogleCondition --]"/>
      <meta itemprop="availability" content="[-- Product.GoogleAvailability --]"/>
    </div>
</div>



Re: Google Microdata

PostPosted: Tue Sep 13, 2016 1:53 pm
by ShopSite Lauren
Google wants the price without the currency symbol. Add "NO_SYMBOL" to the price tags to get this.

Code: Select all
      [-- IF PRODUCT.SaleAmount --]
      <meta itemprop="price" content="[-- PRODUCT.SaleAmount NO_SYMBOL --]"/>
      [-- ELSE --]
      <meta itemprop="price" content="[-- PRODUCT.Price NO_SYMBOL --]"/>
      [-- END_IF --]

Re: Google Microdata

PostPosted: Wed Sep 14, 2016 6:05 am
by lneibauer
OK I will give that a shot, thank you for the newer code.....