Close

Profile: dimitritroncquo

Avatar

User posts

8 years ago

Dear Hristian,

This seems to have fixed the issue. I was able to reorder evrything in the correct way, and it all seems to work fine. I don't quite remember why I combined the files the way I did. I guess it seemed like a good idea at the time. Well, live and learn :)

Thank you very much!

Kind regards,

Dimitri

8 years ago

Hi,

That seems to make sense. I'll try to get everything ordered in the right way and get back to you.

Thank you for your time!

8 years ago

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.

8 years ago

Here is my _Root.cshtml:


@using Microsoft.Ajax.Utilities
@{
    Html.AppendScriptParts("~/Scripts/public.ajaxcart.js");
    Html.AppendScriptParts("~/Scripts/public.common.js");
    Html.AppendScriptParts("~/Scripts/jquery-migrate-1.2.1.min.js");
    Html.AppendScriptParts("~/Scripts/jquery-ui-1.10.3.custom.min.js");
    Html.AppendScriptParts("~/Scripts/jquery.validate.unobtrusive.min.js");
    Html.AppendScriptParts("~/Scripts/jquery.validate.min.js");
    var slug = Request.RequestContext.RouteData.Values["external-template"] ?? Request.RawUrl;
}
<!DOCTYPE html>
<html>
<head>
    @Html.Action("Head", "ExternalContent", new { slug = slug })
    <!-- @Html.NopTitle() -->
    @Html.NopHeadCustom()
    @Html.Partial("Head")
    @Html.Widget("head_html_tag")
    @Html.NopCssFiles(this.Url, ResourceLocation.Head)
    @Html.NopScripts(this.Url, ResourceLocation.Head)
    <!--Powered by nopCommerce and Umbraco - http://www.nopCommerce.com ; http://www.umbraco.com -->
</head>
<body>
    @Html.Widget("body_start_html_tag_after")
    @Html.Partial("_Notifications")
    @Html.Action("JavaScriptDisabledWarning", "Common")
    @Html.Partial("OldInternetExplorerWarning")
    <div class="master-wrapper-page">
        @Html.Action("AdminHeaderLinks", "Common")
        @Html.Action("Header", "ExternalContent", new { slug = slug })
        @Html.Partial("Header")
        <script type="text/javascript">
            AjaxCart.init(false, '.header-links .cart-qty', '.header-links .wishlist-qty', '#flyout-cart');
        </script>
        <div class="master-wrapper-content">
            @Html.Widget("content_before")
            @Html.Action("Body", "ExternalContent", new { slug = slug })
            @if (IsSectionDefined("Breadcrumb")) {
                @RenderSection("Breadcrumb")
            }
            <div class="master-column-wrapper">
                @RenderBody()
            </div>
            @Html.Widget("content_after")
        </div>
        @Html.Action("Footer", "ExternalContent", new { slug = slug })
    </div>
    @Html.Widget("body_end_html_tag_before")
    @Html.NopCssFiles(this.Url, ResourceLocation.Foot)
    @Html.NopScripts(this.Url, ResourceLocation.Foot)
</body>
</html>

8 years ago

@Html.Widget("content_before") is in the template, so that's not the issue.

8 years ago

Hi,

I'm having some trouble getting the ribbons to work in nopCommerce 3.8. They work fine in the DefaultClean theme, but with our own customized version of this same theme, the scripts don't seem to load.



Other sevenspikes plugins, like ajaxfilters and prev/next however work fine.

I must say we kind of butchered the theme, so maybe we deleted a necessary section or dom-element or whatever. I tried to track down this mysterious omission, but I havn't been able to pinpoint it.

What sections, widgetzones, etc. does the ribbons plugin rely on to be loaded?

You can check the dev site at http://chocdecor.lodestar.be/choctales/top-selection. The products in this category should all have a ribbon.

Our content and templates are partially loaded from Umbraco, but this shouldn't really make a difference I think. It just explains why we maimed the theme the way we did :)

The /choctales is because we run a multistore on a single domain using a reverse proxy. The stores are actually on two "virtual" domains known only locally to the server. In IIS we use two applications under a single website to avoid naming conflicts. Both point to the same actual application. This all sounds a bit complex probably, and I don't think this is what causes the issue. We don't have trouble loading other content. When I check the network tab in dev tools, there are no 404's. It looks like the script-tags don't get added to the html.


8 years ago

Hi,

I commented out the following lines in the Web.config:


<system.codedom>
    <compilers>
      <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" />
      <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" />
    </compilers>
  </system.codedom>


This seemed to do the trick. I can now access the configuration without any problem. Hopefully I didn't break anyhting else with this, but for now everything seems to work fine.

Thank you very much!


Kind regards,

Dimitri

8 years ago

Hi,

We recently purchased the nop ajax filters extension. When I try to open the settings page I get the following error:


Compiler Error Message: CS1705: Assembly 'SevenSpikes.Nop.Plugins.AjaxFilters' with identity 'SevenSpikes.Nop.Plugins.AjaxFilters, Version=3.8.746.22651, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Mvc, Version=65535.65535.65535.65535, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Mvc' with identity 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

I tried a few things like putting the following in my web.config (both in the root and in the administration folder):


<runtime>
....

      <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="0.0.0.0-65535.65535.65535.65535" newVersion="5.2.3.0" />
      </dependentAssembly>
...
</runtime>


I even replaced the System.Web.Mvc dll in the GAC, but i keep receiving the same error.