View Single Post
Old 09-28-2010, 05:10 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
Join Date: Sep 2009
Posts: 10,847

Originally Posted by zmcqueary View Post
Hey Eugene,

Sorry again...can you think of any way to grab the values if the cart page ISN'T open? Say, if I'm utilizing the bag widget or the browser window, the alert message cannot pull the bag total from the div if its all done on the same page.

So is there an action or function that I can utilize to throw this alert with the total...say, the 'Go to Checkout' button? I'm not sure...
Unfortunately, no easy way to do this.
However, please try the following workaround: you can dynamically create a hidden iframe with a page from the _same domain_. This page should contain the Ecwid code and open the cart page by default. Your JavaScript will have access to this iframe`s code and order total.
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base