
03-17-2015, 03:16 PM
|
 |
Ecwid Team
|
|
Join Date: Jun 2014
Posts: 1,271
|
|
Quote:
Originally Posted by John R Perry
Yeah but it also makes the schema useless because even if you enter your own schema, google wont care if it sees that the first schema is missing.
|
Hi John,
Sorry for the delay with the response.
If you add the values, such as price and name to the embedded product code, then Google will get that information correctly: http://take.ms/h42xw
So here's a standard embedded product code from Ecwid control panel > Catalog > Products > Select Product > Embed product. When I use it in Google Structured data tool, I get these errors: http://take.ms/sw24Q
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>
However, after I add the name and price values into the code (highlighted in red) like this:
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">Apple</div><div itemtype="http://schema.org/Offer" itemscope itemprop="offers"><div class="ecwid-productBrowser-price ecwid-price" itemprop="price">12.92</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>
As a result, Google processes the data correctly: http://take.ms/h42xw
So feel free to add the corresponding name and price information to your embed product code and it should be processed by Google correctly.
Thank you.
|