Google Microdata

Questions and answers about ShopSite Custom Templates

Google Microdata

Postby lneibauer » Tue Sep 06, 2016 1:49 pm

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>


lneibauer
 
Posts: 108
Joined: Tue Sep 30, 2014 7:13 am
Location: Warminster, PA

Re: Google Microdata

Postby ShopSite Lauren » Tue Sep 13, 2016 1:53 pm

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 --]
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 887
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Google Microdata

Postby lneibauer » Wed Sep 14, 2016 6:05 am

OK I will give that a shot, thank you for the newer code.....
lneibauer
 
Posts: 108
Joined: Tue Sep 30, 2014 7:13 am
Location: Warminster, PA


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 20 guests