• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

toasty0621
#1 Posted : Monday, November 14, 2016 4:23:51 PM(UTC)
toasty0621

Rank: Member

Joined: 5/18/2005(UTC)
Posts: 36

Thanks: 3 times
I need to changed the Breadcrumb trail on the Product pages to only display the current breadcrumb trail instead of every single category that the current product is included in.

Thanks!
toasty0621
#2 Posted : Monday, November 14, 2016 5:22:30 PM(UTC)
toasty0621

Rank: Member

Joined: 5/18/2005(UTC)
Posts: 36

Thanks: 3 times
Not sure if this the "proper" way to fix this...but I changed the following line in the CategoryBreadCrumbTrail.ascx.vb file:
If categories.Count > 1 Then
For i As Integer = 0 To categories.Count - 1
If categories(i).Bvin <> result(0).Bvin Then
result.Add(categories(i))

To
If categories.Count = 1 Then
For i As Integer = 0 To categories.Count - 1
If categories(i).Bvin <> result(0).Bvin Then
result.Add(categories(i))

And that got me the results desired. If this isn't the recommended way I take criticism well :-)

Edited by user Monday, November 14, 2016 5:23:08 PM(UTC)  | Reason: Not specified

Aaron
#3 Posted : Tuesday, November 15, 2016 4:31:18 PM(UTC)
Aaron

Rank: Administration

Joined: 4/2/2004(UTC)
Posts: 2,381
United States
Location: Hummelstown, PA

Thanks: 6 times
Was thanked: 163 time(s) in 158 post(s)
Jay,

In the admin go to Options >> Site Settings >> Display. Set the "Max Category Breadcrumb Trails To Show" setting to "1".
Aaron Sherrick
BV Commerce
Toll-free 888-665-8637 - Int'l +1 717-220-0012
 1 user thanked Aaron for this useful post.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012