dimitritroncquo wrote:Hi,
I checked the js file, and it's on the server. Also, there is no 404 for the file, so it's as if it doesn't even get requested.
When I use the defaultclean theme, it works fine, so I must be missing something in our custom theme.
Hi,
I just checked your _Root.cshtml file and I saw that you have combined the "_Root.cshtml" file and "_Root.Head.cshtml" in one file, which I believe is causing the problem.
The javascript file of the plugin is added by the AddScriptParts method in nopCommerce ( Html.AddScriptParts("~/Plugins/SevenSpikes.Core/Scripts/SevenSpikesExtensions.min.js"); ), and later on it should be rendered by the @Html.NopCssFiles(this.Url, ResourceLocation.Head) method.
However, when you open a page with your theme, it will execute the @Html.NopCssFiles(this.Url, ResourceLocation.Head) first and after that, the Product Ribbons plugin will be integrated into the "content_before" zone. But it will be too late for the plugin to insert its own javascript file via AddScriptParts method because the scripts would be already rendered. This is why there are no problems in Default Clean theme.
I suggest you use the Default Clean theme as an example and separate the 2 files that I mentioned above.
Hope this helps!