Currency DDL in Header
Currency DDL in Header
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).
Re: Currency DDL in Header
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
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
Re: Currency DDL in Header
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).
Re: Currency DDL in Header
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.