The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #11  
Old 11-28-2014, 12:39 PM
Rick G's Avatar
Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default


Hi,

We have investigated the code for the embeddable products and here's what we found out:
Basically the errors that you may see in your Google structure data tool don't prevent your products or website from displaying correctly in any way. Your website and your store will operate in full functionality.

The rich snippets markup, that single product widget uses, has a strict formatting, which doesn't include the 'addtobag' and 'options' and that's why you see those errors. These elements are used by Ecwid and, as I've said earlier, the errors that you see do not affect your website or Ecwid store in any way.

So in order for this Google Structured Data tool to process the Ecwid single product widget correctly, we will need to change the coding of the product widgets by adding a new vocabulary - http://html5doctor.com/microdata/#new-vocab for them and including the 'addtobag' and 'options' elements into this vocabulary. Then the tool will process the code correctly and treat these elements as part of schema, and it should remove those errors in this tool. This task will require restructuring the whole coding of the single product widgets from our end and it will take some time and unfortunately I'm not able to give you ETA on that, sorry.

For now feel free to use the single product widgets, your store will fully function and you will be able to sell your products as well as users that use the Ecwid integration code.
Thank you.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
  #12  
Old 02-01-2015, 11:16 AM
John R Perry's Avatar
John R Perry John R Perry is offline
Webpartner
 
Join Date: Dec 2014
Posts: 79
Default

Quote:
Originally Posted by Vitaliy G View Post
Hi,

We have investigated the code for the embeddable products and here's what we found out:
Basically the errors that you may see in your Google structure data tool don't prevent your products or website from displaying correctly in any way. Your website and your store will operate in full functionality.

The rich snippets markup, that single product widget uses, has a strict formatting, which doesn't include the 'addtobag' and 'options' and that's why you see those errors. These elements are used by Ecwid and, as I've said earlier, the errors that you see do not affect your website or Ecwid store in any way.

So in order for this Google Structured Data tool to process the Ecwid single product widget correctly, we will need to change the coding of the product widgets by adding a new vocabulary - http://html5doctor.com/microdata/#new-vocab for them and including the 'addtobag' and 'options' elements into this vocabulary. Then the tool will process the code correctly and treat these elements as part of schema, and it should remove those errors in this tool. This task will require restructuring the whole coding of the single product widgets from our end and it will take some time and unfortunately I'm not able to give you ETA on that, sorry.

For now feel free to use the single product widgets, your store will fully function and you will be able to sell your products as well as users that use the Ecwid integration code.
Thank you.
Any update on this?
  #13  
Old 02-02-2015, 08:56 PM
Rick G's Avatar
Rick G Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default

Quote:
Originally Posted by John R Perry View Post
Any update on this?
Hi John.

Thank you for contacting us.

Our Development team is working on the fix and it will be released into one of future Ecwid updates. I'll post an update here once the solution is released. Please mind that the schema errors don't affect the display of Ecwid embedded products on your website's pages and they are fully functional for your customers.

Thank you for your patience.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
  #14  
Old 02-26-2015, 10:18 PM
John R Perry's Avatar
John R Perry John R Perry is offline
Webpartner
 
Join Date: Dec 2014
Posts: 79
Default

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.
  #15  
Old 03-17-2015, 03:16 PM
Rick G's Avatar
Rick G Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default

Quote:
Originally Posted by John R Perry View Post
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.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
  #16  
Old 03-19-2015, 06:11 AM
John R Perry's Avatar
John R Perry John R Perry is offline
Webpartner
 
Join Date: Dec 2014
Posts: 79
Default

Quote:
Originally Posted by Vitaliy G View Post
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.
Oh wow, I didn't even think of that. I just assumed that it would mess with ecwid script. Thank you!
  #17  
Old 03-19-2015, 05:13 PM
John R Perry's Avatar
John R Perry John R Perry is offline
Webpartner
 
Join Date: Dec 2014
Posts: 79
Default

Quote:
Originally Posted by Vitaliy G View Post
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.
  #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
  #19  
Old 05-15-2015, 08:47 AM
Rick G's Avatar
Rick G Rick G is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,271
Default

Hi everyone,

I am writing you to inform that we changed the coding of Ecwid single product widget and now the errors:

Quote:
Error: Page contains property "options" which is not part of the schema.
Error: Page contains property "addtobag" which is not part of the schema.
Error: Missing required field "name (fn)".
in Google Structured data test tool are not displayed. Feel free to get the code from your Ecwid control panel for a single product widget and inspect it in that testing tool.

If you see the errors: 'missing and required' - we are working on changing that as well, and in the meantime you can fix it yourself by predefining the values for price and product name in the code itself, using the workaround, i described here: http://www.ecwid.com/forums/showpost...0&postcount=18

Thank you.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
The Following User Says Thank You to Rick G For This Useful Post:
John R Perry (05-15-2015)
  #20  
Old 05-28-2015, 09:26 PM
SteveOrg's Avatar
SteveOrg SteveOrg is offline
 
Join Date: Mar 2013
Posts: 56
Default

The code may look valid in the testing tool, but it will not work if the goal is to display the snippets in search results. That's because Google frowns on hidden text.

The workaround says "...it will be hidden from your product page". Not only will that disable rich snippets in search, it will likely negatively impact SEO.

There is a simple solution that Ecwid could supply immediately. Please post the structure of the product widgets prior to the change to rich snippets. I know it still works because I tested old code that I extracted from a backup. Unfortunately, the code was only for part of the widget.

Then we can manually create the rich snippets while still using Ecwid functionality.

Last edited by SteveOrg; 05-28-2015 at 09:29 PM.
The Following User Says Thank You to SteveOrg For This Useful Post:
de8263981263 (05-28-2015)
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
error, schema, structured data, widget

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:37 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.