BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Tree Menu not following when product has choices
Rank: Member
Joined: 12/1/2008(UTC) Posts: 31
|
On a normal product the tree menu stays on the category the item was opened from. With a product that has choices the menu goes back to the default menu doesn't reference the category. The bread crumbs are correct but not the menu.
Can someone tell me if this is a bug. or where I might start looking for answer to this.
Thanks
If needed I can produce images.
Thanks
Dan
|
|
|
|
Rank: Member
Joined: 12/1/2008(UTC) Posts: 31
|
|
|
|
|
Rank: Member
Joined: 9/20/2006(UTC) Posts: 92
|
Dan, Are you rewriting the product URLS? Feel free to contact us if you need any assistance resolving this issue. Regards, Wallace Miller -- Narrowpath Design Providing installation, custom development, and design services for BVC5 sites 24/7 tech support and consultation service available for BVSoftware E-Commerce 760.728.8679 (phone) [email protected]
|
|
|
|
Rank: Member
Joined: 12/1/2008(UTC) Posts: 31
|
Wallace,
I found a flaw in the code. This was only happening on items that had choices.
This is what I did to make it work(this is non production at the moment. BVModules\ContentBlocks\Category Menu\view.ascx.vb
line 24 I added and changed the following.
--added Dim bvin As String = p.ParentId If p.ParentId = String.Empty Then bvin = p.Bvin End If
--changed to use bvin Dim categories As Collection(Of Catalog.Category) = Catalog.InternalProduct.GetCategories(bvin)
The key was that it was not passing a bvin to look up the proper category's when an item had a parentid.
This fix worked for me.
|
|
|
|
Rank: Member
Joined: 3/18/2010(UTC) Posts: 7
|
Thanks that was quite helpful for me to use, as my items have variants, and I wasn't getting the category menu as I specified.
|
|
|
|
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.