Close

Recently Added Products

naresh
11 years ago
#2811 Quote
Avatar
  • 29
I recently bought unlimited plugin pack, and configuring mega menu for now, i see that recently added product link is missing, I tried adding but getting error, i am trying to add the following to megamenu.chtml

@if (Model.RecentlyAddedProductsEnabled)
    {
        <li><a href="@Url.RouteUrl("RecentlyAddedProducts")">@T("Products.NewProducts")</a>
        </li>
    }
Boyko
11 years ago
#2814 Quote
Avatar
  • 1570
naresh wrote:
I recently bought unlimited plugin pack, and configuring mega menu for now, i see that recently added product link is missing, I tried adding but getting error, i am trying to add the following to megamenu.chtml

@if (Model.RecentlyAddedProductsEnabled)
    {
        <li><a href="@Url.RouteUrl("RecentlyAddedProducts")">@T("Products.NewProducts")</a>
        </li>
    }


Hi naresh,

You should not use the Model.RecentlyAddedProductsEnabled as the MegaMenuModel doesn't have such a property RecentlyAddedProductsEnabled. You should simply add the link to the recently added products in the MegaMenu.cshtml file like this:

<li><a href="@Url.RouteUrl("RecentlyAddedProducts")">@T("Products.NewProducts")</a>
        </li>


Hope this helps!
Regards,
Nop-Templates.com Team