CategoryBreadCrumbs shows only top level categories

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

CategoryBreadCrumbs shows only top level categories

Post by MMIKAL » Mon Jul 19, 2010 9:30 pm

Hi Guys

The CategoryBreadCrumbs on all categroy pages shows only top level (first category) and does not show the category trail.
The BreadCrumbsRepeater.Controls.Count is always 2, no matter how deep you are. The CategorySearchSidebar on the page is working OK.
We have several subcategories ( 4 levels) and we have not modified the code, the original code is not working.

This is very critical for us, any help is appriciated. Thanks

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

UPDATE: CategoryBreadCrumbs shows only top level categories

Post by MMIKAL » Mon Jul 19, 2010 11:01 pm

It seems the CatgoryBreadCrum is updated using paramter passed on the address (Category.aspx?CategoryId=XXX) and the CategorySearchBar does not update the CategoryID parameter. The CategorySeachBar changes the content based on selected category in narrow/Expand and the content is changed accordingly, but a CategoryId is not passed and therefore the BreadCrumb is not updated.

I was wondering if this a normal behavior? and Any hint on how to fix it?

Thanks in advance.

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: CategoryBreadCrumbs shows only top level categories

Post by MMIKAL » Fri Jul 23, 2010 11:38 am

No response for over a week, At least can somebody confirm I am right or not ?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: CategoryBreadCrumbs shows only top level categories

Post by mazhar » Fri Jul 30, 2010 6:49 am

What is your application version? Are you running the page in question in out of the box configuration or you moved things around to suit your needs? If you customized the page what is current configuration of the page means what's in its sidebar, what's in its content section etc.

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: CategoryBreadCrumbs shows only top level categories

Post by mazhar » Fri Jul 30, 2010 9:22 am

Give a try and edit your Conlib/CategoryBreadCrumbs.ascx.cs file and locate following line

Code: Select all

        this.CategoryId = PageHelper.GetCategoryId(true);
and update it as

Code: Select all

if(this.CategoryId==0)
        this.CategoryId = PageHelper.GetCategoryId(true);
save the changes and then test. See if it fixed the issue or not.

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: CategoryBreadCrumbs shows only top level categories

Post by MMIKAL » Fri Jul 30, 2010 10:49 am

It did it,it now works. Thanks a lot, we spend lots of hours on it.
I am just wondering, isn't it suppose to be there by default?

MMIKAL
Lieutenant, Jr. Grade (LT JG)
Lieutenant, Jr. Grade (LT JG)
Posts: 32
Joined: Thu Mar 11, 2010 9:30 am

Re: CategoryBreadCrumbs shows only top level categories

Post by MMIKAL » Fri Jul 30, 2010 11:26 am

Hi again,
Mazhar, it does not updates on the product detail page !
Any idea?

Post Reply