How to change the default theme at code behind not through Admin section?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 years ago
What is the method in controller that is responsible for the default theme?
I want to load different theme for each Affiliate in my current webstore.
How to do that?
11 years ago
arlen_bs wrote:
What is the method in controller that is responsible for the default theme?
I want to load different theme for each Affiliate in my current webstore.
How to do that?


if (_workContext.CurrentCustomer.AffiliateId == 1)
            {
                currentTheme = _themeProvider.GetThemeConfiguration("LightBlue");
            }
else
{

    currentTheme = _themeProvider.GetThemeConfiguration(_themeContext.WorkingDesktopTheme);
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.