Showing or Hiding BreadCrumbs in nopCommerce

At some point in my nopCommerce 1.30 customization, I was required to hide the breadcrumb. I have done this from the ASPX files.

You will need to make a new entry in the Database in nop_setting table as:

BreadCrumb.Show = true/false [As Required]

And in the ASPX pages you can check:

<% if(SettingManager.GetSettingValueBoolean("BreadCrumb.Show")) { %>
<!-- BreadCrumb Control -->
<%}%>

Otherwise, if you need this to be set by the Admin, you can include a CheckBox labeled “BreadCrumb Enabled” at an appropriate section in the Admin Panel. You can set the Settings Value as “BreadCrumb.Show” as True/False in the Settings table with the following code:

SettingManager.SetParam("BreadCrumb.Show", true/false);

Hope this helps you!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s