Close

Mega Menu with custom URLs

viveramedia
11 years ago
#3051 Quote
Avatar
  • 26
Hi,

I have modified my URL structure to work as so:

/category/subcategory

Bu the Mega Menu plugin doesn't seem to use this. Is there any way I can get @Html.Raw(Model.CategoriesHtml) to use the nopCommerce URLs rather than use the Mega Menu ones that seem to be hard coded?

I'm using the ShopAll theme - 2.7

Many thanks,

Dave
Boyko
11 years ago
#3054 Quote
Avatar
  • 1570
viveramedia wrote:
Hi,

I have modified my URL structure to work as so:

/category/subcategory

Bu the Mega Menu plugin doesn't seem to use this. Is there any way I can get @Html.Raw(Model.CategoriesHtml) to use the nopCommerce URLs rather than use the Mega Menu ones that seem to be hard coded?

I'm using the ShopAll theme - 2.7

Many thanks,

Dave


Hi Dave,

The Model.CategoriesHtml is populated from the CategoryMenuTemplate.xxx.cshtml views, which are open to modifications, so you can change the links to the categories to whatever you want.
Just check this folder Plugins\SevenSpikes.Nop.Plugins.MegaMenu\Views\MegaMenu\ and modify the views to your needs.

Thanks
Regards,
Nop-Templates.com Team
viveramedia
11 years ago
#3055 Quote
Avatar
  • 26
Hi Boyko,

Apologies, my fault. I forgo to clear the cache after amending the file! All works now, great stuff!

Many thanks,

Dave