logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to forums.ablecommerce.com. Please use your AbleCommerce username and password to Login. Forums Registration.

Notification

Icon
Error

Options
Go to last post Go to first unread
Joe Payne @ AbleMods LLC  
#1 Posted : Wednesday, May 26, 2021 8:12:08 AM(UTC)
Joe Payne @ AbleMods LLC

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 470

Thanks: 74 times
Was thanked: 14 time(s) in 13 post(s)
I swear it's something simple but I can't figure this out.

I've added a new menu choice 'Tier Discounts' under the Marketing menu. It's a copy of the existing Discounts system so it has all the same pages as Discounts, just renamed to TierDiscounts.

This Tier Discounts menu has a few child pages involved just like the Discounts system. So I want the Marketing menu to stay expanded and Tier Discounts highlighted when those child pages are rendered. Exactly how you have the Discounts pages work under the Marketing menu.

But I cannot figure out how that happens. I've updated /App_Data/adminbreadcrumb.xml and I've modified /Admin/Helpers/AdminBreadCrumbExtension.cs accordingly.

But it still won't keep the Marketing menu open when I edit a tier discount. It works for main Index view. But as soon as I go into the edit view, the Marketing menu collapses again.

Any suggestions on where else to look?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. Forums Registration.

shaharyar  
#2 Posted : Wednesday, May 26, 2021 10:41:59 AM(UTC)
shaharyar

Rank: Advanced Member

Groups: Admin, Developers, Registered, HelpDesk, Authorized User
Joined: 10/5/2018(UTC)
Posts: 531

Thanks: 2 times
Was thanked: 76 time(s) in 75 post(s)
Please look into the code in the admin Dashboard controller. Look at the code in #region Navigation. Function is GetSelectedItem()
Joe Payne @ AbleMods LLC  
#3 Posted : Wednesday, May 26, 2021 1:17:48 PM(UTC)
Joe Payne @ AbleMods LLC

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/9/2018(UTC)
Posts: 470

Thanks: 74 times
Was thanked: 14 time(s) in 13 post(s)
OMG that was it !!! Thank you.

So much hard-coded effort on persisting the state of the menu. Seems like a custom attribute on certain actions would be so much easier.
Users browsing this topic
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.