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.
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.
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
Hi Bill,
Did you create the categories under Demo store catalog?
Best Regards Martin
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
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.
Ah! Soren, this is beginning to make sense. Ok, I'll update you on my progress, if that's OK.
Bill
is working on a reply...