Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Rasmus Lynggaard 118 posts 325 karma points
    Apr 24, 2013 @ 10:32
    Rasmus Lynggaard
    0

    Missing images in demostore

    I just installed the demostore on an Umbraco 6.1 beta and found two bugs. One which I resolved pretty quick, but the other one is more of an issue.

    I'll start out with the error which bugs me the most. In the media library there's no reference to the files. The files exists in the filesystem and the medianodes exists, but there's no reference to the files in the media library.

    Second is the error I fixed - uCommerce/LeftNavigation.cshtml

    @using UCommerce.Api
    @using UCommerce.EntitiesV2
    @using UCommerce.Extensions
    @using UCommerce.Runtime
    @helper RenderNavigation(ICollection<Category> categories)
        {
        if (categories.Any())
        {
            <ul class="nav nav-list">
                @foreach (var category in categories)
                {
                    var currentCategory = SiteContext.Current.CatalogContext.CurrentCategory;
                    var css = "";
                    if (currentCategory != null && currentCategory.CategoryId == category.CategoryId)
                    {
                        css = " class=\"on\"";
                    }
                    <[email protected](css)>
                        <a href="@CatalogLibrary.GetNiceUrlForCategory(category)">@category.DisplayName()</a>
                        @RenderNavigation(category.Categories)
                    </li>
                }
            </ul>
        }
    }
    
    
    @RenderNavigation(CatalogLibrary.GetRootCategories())

    This should be

    @using UCommerce.Api
    @using UCommerce.EntitiesV2
    @using UCommerce.Extensions
    @using UCommerce.Runtime
    @helper RenderNavigation(ICollection<Category> categories)
        {
        if (categories.Any())
        {
            <ul class="nav nav-list">
                @foreach (var category in categories)
                {
                    var currentCategory = SiteContext.Current.CatalogContext.CurrentCategory;
                    var css = "";
                    if (currentCategory != null && currentCategory.CategoryId == category.CategoryId)
                    {
                        css = " class=\"on\"";
                    }
                    <li @Html.Raw(css)>
                        <a href="@CatalogLibrary.GetNiceUrlForCategory(category)">@category.DisplayName()</a>
                        @RenderNavigation(category.Categories)
                    </li>
                }
            </ul>
        }
    }
    
    
    @RenderNavigation(CatalogLibrary.GetRootCategories())
  • Rasmus Lynggaard 118 posts 325 karma points
    Apr 24, 2013 @ 12:13
    Rasmus Lynggaard
    100

    Not sure where the error was - If it was the demo store version (1.0.0.0) or if it's because I ran on umbraco 6.1

    I've now installed v. 1.0.1.13094 on umbraco 6.0.3 and things are working as they should.

Please Sign in or register to post replies

Write your reply to:

Draft