- 14
Hello,
I am having trouble getting the ajax filter render _ProductBox from the correct theme.
Here is my setup:
Platform is Nopcommerce v3.30.
Purchased and installed the Alfresco theme v3.30 and Ultimate Plugin Collection v3.30.
Multi-site. Let's call them Site A and Site B, with display order 1 and 2 respectively.
Multi-theme. Site A uses DefaultClean, and Site B uses Alfresco.
No customization was done.
The problem is with Site B.
When the category page in Site B first loaded, it looked exactly like how the Alfresco theme should look, which was beautiful. Next, I clicked on a filter (product specification) rendered by AjaxFilters. The category page updated the list of products correctly based on the selected filter. But the _ProductBox was no longer Alfresco. It loaded the DefaultClean version instead.
I stepped through the code to find the source of the bug. What I found was that, in Catalog7Spikes.CatagoryTemplate.ProductsInGridOrLines.cshtml, the WorkingDesktopTheme from the context was returning DefaultClean instead of Alfresco. (Everywhere else was able to identify the theme correctly as Alfresco from context.)
I tested the scenario both in local environment and in hosted environment. Both environments displayed consistent results highlighting the same problem.
This issue is a major show-stopper right now.
Please consider my limitations:
- I can't hardcode theme name or file path in anything
- I can't switch the order of the stores (Site A first, then Site B next)
- I don't want to make any changes to the core
- Deadline is fast approaching to get Site B up and running
What options do I have to correct this behavior?
Some insights on what's happening inside AjaxFilters.dll would be very helpful as well.
Thank you.
I am having trouble getting the ajax filter render _ProductBox from the correct theme.
Here is my setup:
Platform is Nopcommerce v3.30.
Purchased and installed the Alfresco theme v3.30 and Ultimate Plugin Collection v3.30.
Multi-site. Let's call them Site A and Site B, with display order 1 and 2 respectively.
Multi-theme. Site A uses DefaultClean, and Site B uses Alfresco.
No customization was done.
The problem is with Site B.
When the category page in Site B first loaded, it looked exactly like how the Alfresco theme should look, which was beautiful. Next, I clicked on a filter (product specification) rendered by AjaxFilters. The category page updated the list of products correctly based on the selected filter. But the _ProductBox was no longer Alfresco. It loaded the DefaultClean version instead.
I stepped through the code to find the source of the bug. What I found was that, in Catalog7Spikes.CatagoryTemplate.ProductsInGridOrLines.cshtml, the WorkingDesktopTheme from the context was returning DefaultClean instead of Alfresco. (Everywhere else was able to identify the theme correctly as Alfresco from context.)
I tested the scenario both in local environment and in hosted environment. Both environments displayed consistent results highlighting the same problem.
This issue is a major show-stopper right now.
Please consider my limitations:
- I can't hardcode theme name or file path in anything
- I can't switch the order of the stores (Site A first, then Site B next)
- I don't want to make any changes to the core
- Deadline is fast approaching to get Site B up and running
What options do I have to correct this behavior?
Some insights on what's happening inside AjaxFilters.dll would be very helpful as well.
Thank you.