Posted on 22/09/2022 10:28:53
Hi Nicolai
Upgrade is not an option for us right now. We went with this code:
using Dynamicweb.Frontend;
using Dynamicweb.Ecommerce;
using Dynamicweb.Ecommerce.Common;
using Dynamicweb.Extensibility.Notifications;
using Dynamicweb.Notifications;
namespace TWG_Tea_Site.Notifications
{
[Subscribe(Standard.Page.Loaded)]
public class PageLoaded: NotificationSubscriber
{
public override void OnNotify(string notification, NotificationArgs args)
{
Context.LanguageID = PageView.Current().Area.EcomLanguageId;
Context.Currency = Services.Currencies.GetCurrency(PageView.Current().Area.EcomCurrencyId);
}
}
}