
03-19-2015, 05:13 PM
|
 |
Webpartner
|
|
Join Date: Dec 2014
Posts: 79
|
|
Quote:
Originally Posted by Vitaliy G
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.
|
I take that back. This doesn't work. Have you tried using this? It passes to Google, but then makes it so that you have to have the title on the widget and then you also have 2 sets of prices.
|