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 01-07-2014, 10:20 AM
bcglobe's Avatar
bcglobe is offline
Junior Member
 
Join Date: Jul 2013
Posts: 7
Default

Single Product Widget Does Not Handle OnPageLoaded Callback


What I have done:
1. Created a product with options (of types SELECT and TEXTFIELD) in ecwid Control Panel

2. Copied the snippet from the product's Product HTML Codes into a blank file named ecwid-html-<product-id>.html

3. Appended these 2 functions to the html file:
<script type="text/javascript">

Ecwid.OnPageLoad.add
(
function(page)
{
alert('LoadingPage:' + page.type);
}
);

Ecwid.OnPageLoaded.add
(
function(page)
{
alert('LoadedPage:' + JSON.stringify(page));
}
);
</script>


4. Opened the file in IE

5. Actual Result: Only "LoadingPage" alert is shown. I am expecting to see "LoadedPage" alert after "LoadingPage" alert.

Kindly advise.
  #2  
Old 01-21-2014, 09:22 AM
Viktor D.'s Avatar
Viktor D. Viktor D. is offline
 
Join Date: Nov 2013
Posts: 723
Default

Thank you very much for the message and for the detailed description. I've forwarded your information to our dev team to find out the cause of such behavior. We'll keep you informed.

Thank you very much for your patience.

Last edited by Viktor Driantsov; 01-21-2014 at 09:42 AM.
  #3  
Old 06-09-2014, 02:39 PM
Viktor D.'s Avatar
Viktor D. Viktor D. is offline
 
Join Date: Nov 2013
Posts: 723
Default

Glad to inform you that the necessary fix took place, within the latest Ecwid release.

Please, note that OnPageload event could be called only on the page with Ecwid Product Browser widget.

Please, do not hesitate to ask any questions.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
onpageloaded, 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 02:30 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.