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
  #21  
Old 05-31-2015, 02:39 AM
SteveOrg's Avatar
SteveOrg is offline
 
Join Date: Mar 2013
Posts: 56
Default


Since I had already been turned down by tech support for the old code, I assume that Ecwid will not post it here. I'd sure like to know why.

In any case, I tracked down a website that is still using the old single product widget, and I used the sample to develop the code I need on my site. The only drawback is that the code does not include pricing or discounts. I had to put them in manually. Maybe Ecwid could post the additional code for prices and discounts?

The source of the code is http://www.squeaky-kids.co.uk/handma...let-shoes.html, but the site seems to be down now. The product has options. Here's the code. "519141" is the store number.

Code:
<div class='ecwid-Product'><form>
<div style='text-align: center; padding-bottom: 10px;'><script type="text/javascript" src="http://app.ecwid.com/script.js?519141" charset="utf-8"></script><script type="text/javascript">xProductThumbnail('productid=6302363');</script></div>
<div class='ecwid-productBrowser-head' style='text-align: center; padding-bottom: 15px; font: normal 20px tahoma, geneva, verdana, sans-serif'>Silver Ballet Shoes (Soft leather Sole Baby Shoes, toddlers slippers, would be a great gift for 1st Birthday or Christmas)</div>
<div class="ecwid-productBrowser-price" style='text-align: center; padding-bottom: 15px'><span>&pound;</span>13.50</div>
<table align='center' border='0'><tr><td align='left' class='ecwid'><div class="ecwid-productBrowser-details-optionPanel ecwid-productBrowser-details-optionPanel-radio ecwid-productoption-Size-container" id="ecwid-productoption-6302363-Size-container"><label for="gwt-uid-759" class="ecwid-fieldLabel">Size</label><div id="gwt-uid-759"><span id="ecwid-productoption-6302363-Size-12-18_months:002c_12.5cm" class="gwt-RadioButton ecwid-productBrowser-details-optionRadioButton ecwid-productoption-Size-12-18_months:002c_12.5cm"><input checked="" tabindex="0" id="gwt-uid-757" value="on" name="6302363-Size" type="radio"><label for="gwt-uid-757"><span class="ecwid-productBrowser-details-optionRadioButton-name">12-18 months, 12.5cm</span></label></span><span id="ecwid-productoption-6302363-Size-18-24_months:002c_13.5cm" class="gwt-RadioButton ecwid-productBrowser-details-optionRadioButton ecwid-productoption-Size-18-24_months:002c_13.5cm"><input tabindex="0" id="gwt-uid-758" value="on" name="6302363-Size" type="radio"><label for="gwt-uid-758"><span class="ecwid-productBrowser-details-optionRadioButton-name">18-24 months, 13.5cm</span></label></span></div></div><div class="ecwid-productBrowser-details-optionPanel ecwid-productBrowser-details-optionPanel-radio ecwid-productoption-Gift_Wrapping-container" id="ecwid-productoption-6302363-Gift_Wrapping-container"><label for="gwt-uid-762" class="ecwid-fieldLabel">Gift Wrapping</label><div id="gwt-uid-762"><span id="ecwid-productoption-6302363-Gift_Wrapping-No:002c_thank_you" class="gwt-RadioButton ecwid-productBrowser-details-optionRadioButton ecwid-productoption-Gift_Wrapping-No:002c_thank_you"><input checked="" tabindex="0" id="gwt-uid-760" value="on" name="6302363-Gift Wrapping" type="radio"><label for="gwt-uid-760"><span class="ecwid-productBrowser-details-optionRadioButton-name">No, thank you</span></label></span><span id="ecwid-productoption-6302363-Gift_Wrapping-Birthday_Wrapping" class="gwt-RadioButton ecwid-productBrowser-details-optionRadioButton ecwid-productoption-Gift_Wrapping-Birthday_Wrapping"><input tabindex="0" id="gwt-uid-761" value="on" name="6302363-Gift Wrapping" type="radio"><label for="gwt-uid-761"><span class="ecwid-productBrowser-details-optionRadioButton-name">Birthday Wrapping</span> <span class="ecwid-productBrowser-details-optionRadioButton-price"> <span class="ecwid-productBrowser-details-optionRadioButton-bracket">(</span><span class="ecwid-productBrowser-details-optionRadioButton-sign">+</span><span>£</span>2.00<span class="ecwid-productBrowser-details-optionRadioButton-bracket">)</span></span></label></span></div></div></td></tr></table><div style='text-align: center'><script type="text/javascript" src="http://app.ecwid.com/script.js?519141" charset="utf-8"></script><script type="text/javascript">xAddToBag('productid=6302363');</script></div>
</form></div>
All I needed is the Add to bag button. Here's the code that I extracted for that:
Code:
    
<div>
     <form>
      <div ><script type="text/javascript" src="http://app.ecwid.com/script.js?STOREID" charset="utf-8"></script></div>
      <div><script type="text/javascript" src="http://app.ecwid.com/script.js?STOREID" charset="utf-8"></script><script type="text/javascript">xAddToBag('productid=PRODUCTID');</script></div>
     </form>
    </div>
One last point. Even if Ecwid ever fixes the structured data, it will only be good for one product per page. Google will ignore the snippets if two or more are put on a page.
  #22  
Old 06-01-2015, 03:54 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 SteveOrg View Post
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.
Quote:
Since I had already been turned down by tech support for the old code, I assume that Ecwid will not post it here. I'd sure like to know why.

In any case, I tracked down a website that is still using the old single product widget, and I used the sample to develop the code I need on my site. The only drawback is that the code does not include pricing or discounts. I had to put them in manually. Maybe Ecwid could post the additional code for prices and discounts?

The source of the code is http://www.squeaky-kids.co.uk/handma..., but the site seems to be down now. The product has options. Here's the code. "519141" is the store number.

All I needed is the Add to bag button. Here's the code that I extracted for that:

One last point. Even if Ecwid ever fixes the structured data, it will only be good for one product per page. Google will ignore the snippets if two or more are put on a page.
Please see the explanation regarding the old code and the new one from Ksenia here: http://www.ecwid.com/forums/showthread.php?p=131634

Basically, the single product widget was created at first as a simple add to bag button and a product thumbnail. So you were meant to create a specifically designed page for this product and add the add to bag functionality, using xAddToBag(). If you wish to get the price and discount, then you can do that using Ecwid API. Unfortunately there are no similar methods for product price or discount.

Then, as the widget evolved, we decided to add more flexibility to it and give Ecwid users and option to choose what parts of the product they wanted to display and display automatically. So that's how the current version of single product widget was created.

Also, for users who only use the single product widget, it was pretty important that Google sees the product details in the search results, such as title and the price, so we decided to add the rich snippets for the single product as well.

As previously discussed in the thread, the content such as 'price' and 'product title' is loaded dynamically, therefore Google isn't able to check for it. We are discussing on changing that behaviour, so stay tuned for updates.

If you enter the details like in my workaround, then Google can recognise that there is more than one product on the page: http://take.ms/NADoO Also you can try this workaround using 'itemref': http://stackoverflow.com/questions/1...ucts-on-a-page to display multiple products in rich snippets.

Thank you.
__________________
Ecwid API and App Market Team
Ecwid Developer Website
  #23  
Old 10-07-2015, 04:22 PM
Russell Tice's Avatar
Russell Tice Russell Tice is offline
Webpartner
 
Join Date: Apr 2015
Posts: 3
Default

Any word on the fix for this. Schema is very important for my site. Errors by inserting Ecwid embed code into my site is not acceptable and needs to be addressed. A frustrated paying member.
  #24  
Old 10-08-2015, 02:19 PM
Wendy's Avatar
Wendy Wendy is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,124
Default

Quote:
Originally Posted by Russell Tice View Post
Any word on the fix for this. Schema is very important for my site. Errors by inserting Ecwid embed code into my site is not acceptable and needs to be addressed. A frustrated paying member.
Hello,

Thanks a lot for reaching out!

I am very sorry, but I am not able to provide any ETA for the fix. As Vitaly mentioned in previous posts, the schema errors don't affect the display of Ecwid embedded products on your website's pages. The embedded products are fully functional for your customers.

We will update you as soon as we have any information on the fix.

In the meantime, please consider using a workaround that is described in this post: http://www.ecwid.com/forums/showthre...9480&page=2#15
__________________
Wendy
Ecwid Customer Care Team
Help Center


⬇ Please click Thanks if my reply helped you.
  #25  
Old 10-08-2015, 02:45 PM
Russell Tice's Avatar
Russell Tice Russell Tice is offline
Webpartner
 
Join Date: Apr 2015
Posts: 3
Default

Thanks for the update.

I am currently going through and manually modifying code on each of my embeds in order to rectify an issue thats been discussion board for quite some time. You should probably remove schema all together if this not a priority concern of Ecwid. Because manually correcting schema errors as you can imagine is time consuming task.
  #26  
Old 10-16-2015, 04:31 PM
Wendy's Avatar
Wendy Wendy is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,124
Default

Quote:
Originally Posted by Russell Tice View Post
Thanks for the update.

I am currently going through and manually modifying code on each of my embeds in order to rectify an issue thats been discussion board for quite some time. You should probably remove schema all together if this not a priority concern of Ecwid. Because manually correcting schema errors as you can imagine is time consuming task.
Thanks a lot for your honest feedback, I shared it with our appropriate team!

Again, we are very sorry for any inconvenience caused by this.

We will post an update here as soon as we have any. Thank you for your patience.
__________________
Wendy
Ecwid Customer Care Team
Help Center


⬇ Please click Thanks if my reply helped you.
  #27  
Old 11-24-2015, 10:27 PM
Heart Press's Avatar
Heart Press Heart Press is offline
 
Join Date: Jun 2015
Posts: 5
Default

To fix the errors on your embedded code, simply type the information within the code where it needs to be placed. To prevent the price from appearing 2x on your website, put the price with span tags. Here is an example.

<div class="ecwid-SingleProduct-picture"><a href="http://www.heartpress.ph/flip-flop-sandals.html#!/Flip-Flop-Sandals/p/56830362/category=13432605"><img class="gwt-Image"

src="http://www.heartpress.ph/files/theme/flip-flop-sandals.jpg" alt="Flip-Flop Sandals" title="Flip-Flop Sandals" style="width: 230px; height: 230px;

margin: auto;">
</a>
</div>

<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-56830362" itemscope itemtype="http://schema.org/Product" data-single-product-id="56830362"><div class="ecwid-title" itemprop="name">Flip-Flop Sandals</div><div itemtype="http://schema.org/Offer" itemscope itemprop="offers"><div class="ecwid-productBrowser-price ecwid-price" itemprop="price"><span>₱180</span></div></div></div><script type="text/javascript" src="https://app.ecwid.com/script.js?7138370&data_platform=singleproduct" charset="utf-8"></script><script type="text/javascript">xSingleProduct()</script>


Items such as 'add to bag' do not need to be marked up. In this example, I removed the addtobag button and made the image clickable. Edit as you like...

For ecwid single product pages, you can add a sample code like this from schema.org:

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"name": "Flip-Flop Sandals",
"image": "http://www.heartpress.ph/files/theme/flip-flop-sandals.jpg",
"description": "Customize your very own Flip-Flop Sandals! These sandals have durable, white foam on top for printing your unique design. The straps and bottoms are solid black. This item is sold as a pair and comes in three different sizes. Please note that this product can be personalized using both images and / or text. Simply upload your desired high-resolution image during the checkout process.",
"availability": "In Stock",
"price": "180",
"priceCurrency": "PHP"
}
}
</script>

This code was generated at https://schema.org/Product

For reference purposes, these sample codes are located at http://www.heartpress.ph

Both, my store pages and single product pages are now completely marked up with zero errors. Hope this helps...
  #28  
Old 12-08-2015, 09:01 AM
Saras Store789's Avatar
Saras Store789 Saras Store789 is offline
 
Join Date: Sep 2014
Posts: 28
Default

I have found that if you put the following red highlighted tags in the HTML it will fix the problem of scheme errors.

<div dmle_widget="html" class="dmCustomHtml" id="">
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-" itemscope="" itemtype="http://schema.org/Product" data-single-product-id="">
<div itemprop="image">
</div>
<div class="ecwid-title" itemprop="name"><b>Product Description</b></span>
<div itemtype="http://schema.org/Offer" itemscope="" itemprop="offers">
<div class="ecwid-productBrowser-price ecwid-price" itemprop="price"><b>$10.00</b></span>


Its a pain in the butt to do this for every product though.
  #29  
Old 12-08-2015, 04:12 PM
Wendy's Avatar
Wendy Wendy is offline
Ecwid Team
 
Join Date: Jun 2014
Posts: 1,124
Default

Quote:
Originally Posted by Saras Store789 View Post
I have found that if you put the following red highlighted tags in the HTML it will fix the problem of scheme errors.

<div dmle_widget="html" class="dmCustomHtml" id="">
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-" itemscope="" itemtype="http://schema.org/Product" data-single-product-id="">
<div itemprop="image">
</div>
<div class="ecwid-title" itemprop="name"><b>Product Description</b></span>
<div itemtype="http://schema.org/Offer" itemscope="" itemprop="offers">
<div class="ecwid-productBrowser-price ecwid-price" itemprop="price"><b>$10.00</b></span>


Its a pain in the butt to do this for every product though.
Hello,

Recently Google crawlers started understanding a site content delivered dynamically by means of Javascript.

It means, there is no need to use a workaround that is suggested by Vitaly in this post anymore: http://www.ecwid.com/forums/showpost...0&postcount=18 Now Google can natively read the price and name of the product added on your site with the help of embed HTML product code.

For more details, please, refer to this post on our forums: http://www.ecwid.com/forums/showthread.php?t=35739

If you have any further questions, feel free to ask. Thank you!
__________________
Wendy
Ecwid Customer Care Team
Help Center


⬇ Please click Thanks if my reply helped you.
 
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 06:15 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.