Figured it out.
Based it on Boyko's solution from way back using foreach instead of the DataTable helper method.
Hi there,
On CategoryMenuTemplate.WithPictures.cshtml, the code shows the Category > Subcategory > Sub-subcategory (basically, grandchildren):
@if (Model.CategoriesModels.Count > 0)
{
...
foreach (var category in Model.CategoriesModels)
{
...
@if (category.SubCategories.Count > 0)
{
...
@foreach (var subCategory1 in item.SubCategories.Take(megaMenuSettings.NumberOfCategories))
{
<li><a href="@Url.RouteUrl("Category", new { SeName = subCategory1.CategoryModel.SeName })" title="@subCategory1.CategoryModel.Name">
@subCategory1.CategoryModel.Name</a>
</li>
}
...
}
...
}
...
}
Thanks Boyko.
Hi Boyko,
Thanks for you help on the previous post. I'm posting it here because I think it's appropriate since you helped me out with the foreach method.
On the CategoryMenuTemplate.WithPictures.cshtml:
<div class="dropdown categories fullWidth [email protected]">
@(Html.DataTable<SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel>(category.SubCategories, 4, "row", "box",
@<text>
You are a genius! Thank you so much!
Hi there,
In CategoryMenuTemplate.WithPictures.cshtml, is it possible to call each individual category (say by ID or name)?
@(Html.DataTable<SevenSpikes.Nop.Plugins.MegaMenu.Models.MegaMenuCategoryModel>(category.SubCategories, 4, "row", "box",
@<text>
Hi all,
We have a 3rd party customize our nop template and one of the functionalities that they made to the site somewhat ties in with the plugin.
If I disable the plugin, the customization is also disabled.
I just want to know how to disable the default zoom/pan function when you mouseover the product image.
Thanks in advance.
Cheers!
Excellent! It most definitely does.
Thank you so much.
Thank you