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.

  • Bill Smith 52 posts 222 karma points
    May 22, 2013 @ 17:33
    Bill Smith
    0

    Product Categories not showing in shop front

    I have been asked to look at a Ucommerce installation - I have never looked at Ucommerce before.

    I added some categories:

     

    Shop
    Products
    P1
    P2
    P3
    Food Items
    F1
    F2
    F3
    Non Food Items
    NF1
    NF2
    Test

    Products was already there, but when I check out the store, only contents of Products appear (not the title Products but onlyP1, P2 and P3)

    The Razor navigation is:

    @using UCommerce.Api
    @using UCommerce.EntitiesV2
    @using UCommerce.Extensions
    @using UCommerce.Runtime
    @helper RenderNavigation(ICollection<Category> categories)

        {
        if (categories.Any())
        {
            <div id="shopNav">
            <h4>Shop Navigation</h4>
            <hr />
                <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>
            </div>
        }
    }
    @RenderNavigation(CatalogLibrary.GetRootCategories())

    Does anyone know why this does not show the full category tree together with the products?

    Thanks,

    Bill

  • Martin 181 posts 740 karma points
    May 22, 2013 @ 19:05
    Martin
    0

    Hi Bill,

    Did you create the categories under Demo store catalog?

    Best Regards Martin

  • Bill Smith 52 posts 222 karma points
    May 22, 2013 @ 21:22
    Bill Smith
    0

    The "Shop" was created by a young developer who has since moved on but I'm pretty sure he used the Razor Store as a template as I can see references to shirts and shoes. etc.

    Do you think this has relevance?

    Bill

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 22, 2013 @ 23:23
    Søren Spelling Lund
    0

    Looks like you may have added a couple extra catalogs as opposed to categories. By default the Razor will list the default catalog (the first one). If you want the others listed you want to add that to the navigation macro.

    This is by design to keep the Razor store as simple as possible.

  • Bill Smith 52 posts 222 karma points
    May 23, 2013 @ 10:37
    Bill Smith
    0

    Ah! Soren, this is beginning to make sense. Ok, I'll update you on my progress, if that's OK.

    Bill

Please Sign in or register to post replies

Write your reply to:

Draft