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
  #1  
Old 03-06-2014, 04:04 PM
Manouche's Avatar
Manouche is offline
 
Join Date: Jan 2014
Posts: 3
Default

URGENT: Code of Single product widget does not work anymore in WIX!(since your update?)


Hi, I hope you can answer this question fast, because I really need to go live with my website today.

On several pages of my WIX site I use the single product widget. It used to work perfectly, but now I just updated the HTML-codes from ECWID (because I changed some content of the products) I get an error in WIx, saying:

This document doesn't contain the requires <body> and <body> tags. Thus your ECWID store can not be loaded (..)

If I delete some of the first few lines, it seemed to be working for one of the products, but not for all of the products.

The code used to start with:
<div class='ecwid-Product'><form>

Now it starts with:
<script type="text/javascript" src="http://app.ecwid.com/script.js?4167392" charset="utf-8"></script>

HELP!!! I need to add the products and go live, so please help out asap!
  #2  
Old 03-06-2014, 05:24 PM
Liza P's Avatar
Liza P Liza P is offline
Ecwid Team
 
Join Date: Jan 2013
Posts: 2,517
Default

Quote:
Originally Posted by Manouche View Post
Hi, I hope you can answer this question fast, because I really need to go live with my website today.

On several pages of my WIX site I use the single product widget. It used to work perfectly, but now I just updated the HTML-codes from ECWID (because I changed some content of the products) I get an error in WIx, saying:

This document doesn't contain the requires <body> and <body> tags. Thus your ECWID store can not be loaded (..)

If I delete some of the first few lines, it seemed to be working for one of the products, but not for all of the products.

The code used to start with:
<div class='ecwid-Product'><form>

Now it starts with:
<script type="text/javascript" src="http://app.ecwid.com/script.js?4167392" charset="utf-8"></script>

HELP!!! I need to add the products and go live, so please help out asap!
Hello,

Thank you for contacting us.

The issue is caused by the usage of product HTML codes on separate pages Wix. You don't usually get this problem when you embed Ecwid widgets into a usual site. But specifically Wix site builder that you use to build your site allows embedding widgets via a special mechanism that is prone to this error. This problem on Wix sites was discussed on the forums and there’s a solution. Please refer to this forum thread, message from Pumpurum user: http://www.ecwid.com/forums/showthre...4709#post54709
__________________
Liza P.
Customer Care
Ecwid Help Portal
  #3  
Old 03-06-2014, 05:41 PM
Manouche's Avatar
Manouche Manouche is offline
 
Join Date: Jan 2014
Posts: 3
Default

Ok, thanks, but so you know I've had this site for more than a month now and this problem did not exist yesterday, not the day before and al of the other 40 days I've been putting the widget on pages. So all of my 11 pages with the product widgets were viewable without problems or 'errors' ... Only since adding new code today this started to occur.

Look, this is how it looked after copy pasting, without adding <body> (in the last month):
http://www.stylectic.nl/#!test-antwerpen/c1k0c
(for other users reading this post, this URL is not a definite page yet, so do not try to book the hotel please. Thanks )

Why did this change since today? I hope your advice will help and I will try to do that, but maybe it's good for ECWID to know this has been a completely new error that only started to exist as in one day. (So, since ECWID had an update yesterday, thought I would let you'll know) The thread you suggested is from a long time ago, so apparently it happened before.. However thought I'd let you know.

Best regards,
  #4  
Old 03-07-2014, 12:40 PM
Liza P's Avatar
Liza P Liza P is offline
Ecwid Team
 
Join Date: Jan 2013
Posts: 2,517
Default

Quote:
Originally Posted by Manouche View Post
Ok, thanks, but so you know I've had this site for more than a month now and this problem did not exist yesterday, not the day before and al of the other 40 days I've been putting the widget on pages. So all of my 11 pages with the product widgets were viewable without problems or 'errors' ... Only since adding new code today this started to occur.

Look, this is how it looked after copy pasting, without adding <body> (in the last month):
http://www.stylectic.nl/#!test-antwerpen/c1k0c
(for other users reading this post, this URL is not a definite page yet, so do not try to book the hotel please. Thanks )

Why did this change since today? I hope your advice will help and I will try to do that, but maybe it's good for ECWID to know this has been a completely new error that only started to exist as in one day. (So, since ECWID had an update yesterday, thought I would let you'll know) The thread you suggested is from a long time ago, so apparently it happened before.. However thought I'd let you know.

Best regards,
Hello,

Thank you for your report and for the provided details. I have forwarded this information to our engineers. They will investigate the issue. I will keep you updated of the progress.
__________________
Liza P.
Customer Care
Ecwid Help Portal
  #5  
Old 03-11-2014, 04:42 PM
john b miller's Avatar
john b miller john b miller is offline
 
Join Date: Jan 2012
Posts: 5
Default Single Widget is no longer working

This widget HTML code is not working in my WP site. WHY DID IT CHANGE????? It worked just fine and now does not work at all!!

<script type="text/javascript" src="http://app.ecwid.com/script.js?839200" charset="utf-8"></script>
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-34793416" itemscope itemtype="http://schema.org/Product" data-single-product-id="34793416">
<div itemprop="picture"></div>
<div class="ecwid-title" itemprop="title"></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="qty"></div>
<div itemprop="addtobag"></div>
</div>
<script type="text/javascript">xSingleProduct()</script>


This code below is the widget code that was previously used on my site and it does work so WHY was it changed? When will this problem be fixed? I can no longer add single widget items in with the new HTML code above because it does not populate the widget and is useless to my website sales!!! Please go back to the coding below!!

<div class="ecwid-Product"><form>
<div style="text-align: center; padding-bottom: 10px;"><script type="text/javascript" src="http://app.ecwid.com/script.js?839200"></script><script type="text/javascript">// <![CDATA[
xProductThumbnail('productid=17506786');
// ]]></script></div>
<div class="ecwid-productBrowser-head" style="text-align: center; padding-bottom: 15px; font: normal 20px tahoma, geneva, verdana, sans-serif;">VALENTE, CATERINA WITH A SONG IN MY HEART 9-CD &amp; Book</div>
<div class="ecwid-productBrowser-price" style="text-align: center; padding-bottom: 15px;">$224.00</div>
<table border="0" align="center">
<tbody>
<tr>
<td class="ecwid" align="left"></td>
</tr>
</tbody>
</table>
<div style="text-align: center;"><script type="text/javascript" src="http://app.ecwid.com/script.js?839200"></script><script type="text/javascript">// <![CDATA[
xAddToBag('productid=17506786');
// ]]></script></div>
</form></div>
  #6  
Old 03-19-2014, 11:09 AM
Liza P's Avatar
Liza P Liza P is offline
Ecwid Team
 
Join Date: Jan 2013
Posts: 2,517
Default

Quote:
Originally Posted by john b miller View Post
This widget HTML code is not working in my WP site. WHY DID IT CHANGE????? It worked just fine and now does not work at all!!

<script type="text/javascript" src="http://app.ecwid.com/script.js?839200" charset="utf-8"></script>
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-34793416" itemscope itemtype="http://schema.org/Product" data-single-product-id="34793416">
<div itemprop="picture"></div>
<div class="ecwid-title" itemprop="title"></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="qty"></div>
<div itemprop="addtobag"></div>
</div>
<script type="text/javascript">xSingleProduct()</script>


This code below is the widget code that was previously used on my site and it does work so WHY was it changed? When will this problem be fixed? I can no longer add single widget items in with the new HTML code above because it does not populate the widget and is useless to my website sales!!! Please go back to the coding below!!

<div class="ecwid-Product"><form>
<div style="text-align: center; padding-bottom: 10px;"><script type="text/javascript" src="http://app.ecwid.com/script.js?839200"></script><script type="text/javascript">// <![CDATA[
xProductThumbnail('productid=17506786');
// ]]></script></div>
<div class="ecwid-productBrowser-head" style="text-align: center; padding-bottom: 15px; font: normal 20px tahoma, geneva, verdana, sans-serif;">VALENTE, CATERINA WITH A SONG IN MY HEART 9-CD &amp; Book</div>
<div class="ecwid-productBrowser-price" style="text-align: center; padding-bottom: 15px;">$224.00</div>
<table border="0" align="center">
<tbody>
<tr>
<td class="ecwid" align="left"></td>
</tr>
</tbody>
</table>
<div style="text-align: center;"><script type="text/javascript" src="http://app.ecwid.com/script.js?839200"></script><script type="text/javascript">// <![CDATA[
xAddToBag('productid=17506786');
// ]]></script></div>
</form></div>
Hello,

Sorry for the delay.

Please, post here the URL of the page where I can check this issue so that I could see what exactly is causing it and how it can be fixed.

Thank you in advance.
__________________
Liza P.
Customer Care
Ecwid Help Portal
  #7  
Old 03-26-2014, 02:37 AM
Megan Behan1's Avatar
Megan Behan1 Megan Behan1 is offline
Junior Member
 
Join Date: Dec 2011
Posts: 3
Default

The widget code is loaded into all of these, but NONE are showing with this new code.
:-(

http://groovitnola.com/albums/ella-f...mport/#content


http://groovitnola.com/albums/aretha...mport/#content

http://groovitnola.com/albums/wilson...orner/#content

http://groovitnola.com/albums/serge-...corner-import/
  #8  
Old 03-26-2014, 11:27 AM
Liza P's Avatar
Liza P Liza P is offline
Ecwid Team
 
Join Date: Jan 2013
Posts: 2,517
Default

Hello,

Thank you for the links. The products are not displayed on these pages, because your store is closed for maintenance. For the products to be displayed you need to open your store. This can be done in your control panel on the System settings -> General -> Store profile page -> 'Open store' button

Please, let me know if you have any questions.
__________________
Liza P.
Customer Care
Ecwid Help Portal
  #9  
Old 03-27-2014, 10:48 PM
john b miller's Avatar
john b miller john b miller is offline
 
Join Date: Jan 2012
Posts: 5
Default

I have turned the store back on but the newly coded widgets are still not showing. We can't even see them in the preview box any more on the admin side when we copy the code. The old widget codes at least displayed something in the post area of WP.

We only closed the stores because the "new coded" widgets were not appearing and we didn't want people seeing the site until we fixed this problem.

http://musicbyemail.com/albums/clima...ecords-cd-dvd/ here is a link

this is the new code and it's not showing up

<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-34448323" itemscope="" itemtype="http://schema.org/Product" data-single-product-id="34448323">
<div itemprop="picture"></div>
&nbsp;
<div class="ecwid-title" itemprop="title"></div>
&nbsp;
<div itemprop="offers" itemscope="" itemtype="http://schema.org/Offer"></div>
&nbsp;
<div itemprop="options"></div>
&nbsp;
<div itemprop="qty"></div>
&nbsp;
<div itemprop="addtobag"></div>
</div>
<script type="text/javascript">// <![CDATA[
xSingleProduct()
// ]]></script>

Here is an example with the old code and it's showing up NO PROBLEM!! PLEASE HELP because both my sites need to remain off until you fix this broken new code!
http://musicbyemail.com/albums/worki...et-cd/#content

<div class="ecwid-Product"><form>
<div style="text-align: center; padding-bottom: 10px;"><script type="text/javascript" src="http://app.ecwid.com/script.js?839200"></script><script type="text/javascript">// <![CDATA[
xProductThumbnail('productid=20320380');
// ]]></script></div>
<div class="ecwid-productBrowser-head" style="text-align: center; padding-bottom: 15px; font: normal 20px tahoma, geneva, verdana, sans-serif;">DAVIS, MILES WORKIN' - CD</div>
<div class="ecwid-productBrowser-price" style="text-align: center; padding-bottom: 15px;">$18.00</div>
<table border="0" align="center">
<tbody>
<tr>
<td class="ecwid" align="left"></td>
</tr>
</tbody>
</table>
<div style="text-align: center;"><script type="text/javascript" src="http://app.ecwid.com/script.js?839200"></script><script type="text/javascript">// <![CDATA[
xAddToBag('productid=20320380');
// ]]></script></div>
</form></div>

Last edited by john b miller; 03-27-2014 at 11:23 PM.
  #10  
Old 03-28-2014, 10:39 AM
Maya's Avatar
Maya Maya is offline
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 5,876
Default

Hello,

I have checked your single product widget code and found out that main Ecwid script that is responsible for Ecwid product displaying was missed there. That is why this script doesn't work properly.

Please, use following code to display single product on your page:
Code:
<div class="ecwid ecwid-SingleProduct ecwid-Product ecwid-Product-34448323" itemscope itemtype="http://schema.org/Product" data-single-product-id="34448323">
<div itemprop="picture"></div>
<div class="ecwid-title" itemprop="title"></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="qty"></div>
<div itemprop="addtobag"></div>
</div>
<script type="text/javascript" src="http://app.ecwid.com/script.js?839200" charset="utf-8"></script>
<script type="text/javascript">xSingleProduct()</script>
Please, let me know about results.
__________________
Maya N., Ecwid Team

------------------
Welcome to our new Help Center!
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
html code in wix, single product 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:11 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.