-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
I am wondering if it is possible to create a category menu with the number of products in it.
I asked my friend chat GPT but that did not really end well :-)
It suggested something like this:
@inherits NBrightBuy.render.NBrightBuyRazorTokens<NBrightDNN.NBrightRazor>
@using System.Linq
@using Nevoweb.DNN.NBrightBuy.Components
@{
var grpcat = (GroupCategoryData)Model.List.First();
var depth = grpcat.depth;
//this does not work
var count = grpcat.productcount;
}
@if (grpcat.url.StartsWith("javascript"))
{
@grpcat.categoryname (@count)
}
else
{
@grpcat.categoryname (@count)
}
Metadata
Metadata
Assignees
Labels
No labels