Currency DDL in Header

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
nethrelm
Lieutenant (LT)
Lieutenant (LT)
Posts: 61
Joined: Thu May 09, 2013 4:47 pm

Currency DDL in Header

Post by nethrelm » Fri May 10, 2013 11:30 am

I wanted to place the Currency DDL control in my store header so it can be swapped on-the-fly. It works as expected except on product pages. When the product has options or kit components where there is an additional charge attached, the additional charge amount of is not showing the new currency format until another post back or other navigation event occurs. Any idea why? The UpdatePanel that holds the controls in the BuyProductDialog has its UpdateMode set to Always, so I'm not sure why the controls aren't updating properly. I am using the latest release and it is a fresh install (running in Chrome, launched from VS 2012 in debug config and demo mode with dev license).

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Currency DDL in Header

Post by AbleMods » Fri May 10, 2013 2:22 pm

Try modifying the currency user control so that it's wrapped in an update panel as well, set UpdateMode to Always.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

nethrelm
Lieutenant (LT)
Lieutenant (LT)
Posts: 61
Joined: Thu May 09, 2013 4:47 pm

Re: Currency DDL in Header

Post by nethrelm » Fri May 10, 2013 2:32 pm

Nope, still doing the same thing, just without the full page refresh. And it makes it stop working altogether on other pages, like the home page (presumably because the controls on the page are not in update panels, or they are have conditional update modes).

nethrelm
Lieutenant (LT)
Lieutenant (LT)
Posts: 61
Joined: Thu May 09, 2013 4:47 pm

Re: Currency DDL in Header

Post by nethrelm » Fri May 10, 2013 2:48 pm

I think it's because the data binding on the options/kits lists occur during page load in the BuyProductDialog, which fires before the SelectedIndexChanged event on the Currency control. The basic product price updates because it is a separate control that is a child of the BuyProductDialog, so it loads after (being deeper in the control hierarchy). That's my guess at least. Not sure how to fix it other than moving the data binding from page load to page pre-render, but I'm not sure without further analysis what effect that will have on the rest of the page functionality. Could be problematic.

Post Reply