|
|

08-02-2012, 11:06 AM
|
 |
Ecwid Team
|
|
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,560
|
|
Quote:
Originally Posted by Work of Your Hand
Hi, so it turns out that I had an identical problem, and I put the code from https://gist.github.com/977052 into my site header. Now, on Chrome, it works every time after the first (that is, after updating the page, the first time I open it, no javascript runs, but it does work the second time), but it doesn't work at all in IE9. Any idea what the problem is?
Here is the specific product in my store that I've added javascript to the description for, if it helps.
EDIT: Turns out that it doesn't work every time after the first on Chrome - it seems to be really random whether it works or not. Still getting absolutely nothing on IE.
|
You shouldn't put the script from that gist into header - rather, please, place it after the code of the Ecwid widgets (safest place - just before the closing </body> of your site).
__________________
Eugene Efimochkin,  Team
_________________________
⬇ Click Thanks, please, if this reply helped you.
|
|
The Following User Says Thank You to Eugene Rimmer For This Useful Post:
|
|

01-09-2013, 07:43 PM
|
 |
Paid Member
|
|
Join Date: Dec 2011
Posts: 6
|
|
Same problem with script not working
I followed the directions above for adding the gist file on my server. I have then embedded the <script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script> to audio files inside my store - CD "Love Lifted Me" http://www.billriceranch.org/store/m...
They work on the first page load, but then go to another product using the same code without reloading the store - like the very next CD "All for Thee" http://www.billriceranch.org/store/m...
and the player is still running with the previous item's songs, but doesn't refresh to the new item's files.
Any suggestions?
|

01-10-2013, 03:12 PM
|
 |
Ecwid Team
|
|
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 3,992
|
|
Quote:
Originally Posted by BRR Publications
I followed the directions above for adding the gist file on my server. I have then embedded the <script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script> to audio files inside my store - CD "Love Lifted Me" http://www.billriceranch.org/store/m...
They work on the first page load, but then go to another product using the same code without reloading the store - like the very next CD "All for Thee" http://www.billriceranch.org/store/m...
and the player is still running with the previous item's songs, but doesn't refresh to the new item's files.
Any suggestions?
|
The thing is that Ecwid.OnPageLoaded method of Javascript API is not called when customer moved between product detailed pages using navigation arrows. I have reported our engineers about it. They will solve this problem as soon as possible.
As a temporary workaround, I suggest you to disable navigation arrows as described here: http://kb.ecwid.com/w/page/51354751/...
__________________
Maria Nikiforova, Ecwid Team
------------------
Welcome to our Knowledge Base with a lot of answers, tips and receipts!
Please, rate my reply here
|

01-10-2013, 04:02 PM
|
 |
Paid Member
|
|
Join Date: Dec 2011
Posts: 6
|
|
Problem not in navigation buttons only
This problem exists when clicking to the other product via the store menu above not just the arrow navigation. I have disabled the arrows as you described and the problem still exists. Thanks for working on this!
|

01-15-2013, 11:42 AM
|
 |
Ecwid Team
|
|
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 3,992
|
|
Quote:
Originally Posted by BRR Publications
This problem exists when clicking to the other product via the store menu above not just the arrow navigation. I have disabled the arrows as you described and the problem still exists. Thanks for working on this!
|
The problem is caused by Yahoo! Player work. It loads only once - when your HTML page, where your store is installed, loaded and doesn't reloads when you move from one page to another inside your store. The thing is that, in fact, you stays inside one HTML page.
I suggest you to use another player, which can be executed each time, when new product page is loaded.
__________________
Maria Nikiforova, Ecwid Team
------------------
Welcome to our Knowledge Base with a lot of answers, tips and receipts!
Please, rate my reply here
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 07:23 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
|