View Single Post
  #18  
Old 03-24-2015, 04:51 PM
Rick G's Avatar
Rick G Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default

Hi John,

Thank you for your feedback.

At the moment, when Google visits your website page where you embedded a product from your Ecwid store he 'sees' the data that is present there.

So if you take the our integration code as an example:
Code:
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-37723138" itemscope itemtype="http://schema.org/Product" data-single-product-id="37723138"><div itemprop="image"></div><div class="ecwid-title" itemprop="name"></div><div itemtype="http://schema.org/Offer" itemscope itemprop="offers"><div class="ecwid-productBrowser-price ecwid-price" itemprop="price"></div></div><div itemprop="options"></div><div itemprop="addtobag"></div></div><script type="text/javascript" src="http://app.ecwid.com/script.js?5035009" charset="utf-8"></script><script type="text/javascript">xSingleProduct()</script>
you will see, that the product name and price html elements are empty, so Google structured data tool returns an error message. However, when your Ecwid product widget is loaded, the price and name elements are filled by the corresponding data from your Ecwid store.

As far as I know, any schema code requires a 'name' field filled. I did some testing and if you want to show the price in your schema, then you can wrap your price in a <span> element and it will be hidden form your product page, thus not duplicating the price that Ecwid generates upon loading the product - http://take.ms/bBglU

Here's an example:
Code:
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-42138296" itemscope itemtype="http://schema.org/Product" data-single-product-id="42138296"><div itemprop="image"></div><div class="ecwid-title" itemprop="name">Some name</div><div itemtype="http://schema.org/Offer" itemscope itemprop="offers"><div class="ecwid-productBrowser-price ecwid-price" itemprop="price"><span>12</span></div></div><div itemprop="options"></div><div itemprop="qty"></div><div itemprop="addtobag"></div></div><script type="text/javascript" src="http://app.ecwid.com/script.js?5035009" charset="utf-8"></script><script type="text/javascript">xSingleProduct()</script>
And here are the results in Google Structured data tool: http://take.ms/gLOGt
I hope this helps,
Thank you.
__________________
Ecwid API and App Market Team
Ecwid Developer Website