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
Prev Previous Post   Next Post Next
  #1  
Old 08-26-2013, 01:14 AM
TG Data Service's Avatar
TG Data Service TG Data Service is offline
 
Join Date: May 2013
Posts: 6
Question Add element to the Cart page via Javascript

Hi,
I'm trying to add an element with javascript (basically i'm trying to add a custom button next to the checkout button) in the cart page. usually this works for other pages but this doesn't seem to work when i want to add the element in the table that the checkout button appears in on the cart page. I've been calling my addCustomBtn function within the OnPageLoaded but the element does not appear. However, if I add an element elsewhere in the page (for example I add a custom sub-title element) then it seems fine, it just seems to be that I can't add an element to the area that the checkout button appears in. Can anyone help me figure out why?

Ecwid.OnPageLoaded.add(function(page) {
if (page.type == 'CART') {
addCustomBtn();
}
});
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
cart, custom, javascript

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 12:18 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.