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 : Tuesday, October 1, 2019 12:45:01 PM(UTC)
Joe Payne @ AbleMods LLC

Rank: Member

Groups: Developers
Joined: 11/9/2018(UTC)
Posts: 18

I will need to remove the Browse Store menu from the store header for a project that does not require it. But I can't find where it's added? I see in /Views/Shared/ there are several store header related views but I'm not finding the Browse-Store menu specifically in any of them.

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

judy at Web2Market  
#2 Posted : Wednesday, October 2, 2019 6:14:32 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: HelpDesk, Developers
Joined: 11/7/2018(UTC)
Posts: 58

Was thanked: 1 time(s) in 1 post(s)
It is in the Views/Shared/_StoreMenuLight.cshtml
<li class="dropdown megamenu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="300" data-close-others="true">@GetResourceString("retail.storemenulight.browse_store")</a>
<ul class="dropdown-menu">
@Html.Action("CategoryHeaderMenuMega", "Category", new { showMainCategories = ViewBag.ShowMainCategories, showChildCategories = Model.ShowChildCategories })
</ul>
</li>

Sometimes the only way I can find things now is to find what css class they use and search my solution for that!
Joe Payne @ AbleMods LLC  
#3 Posted : Wednesday, October 2, 2019 8:58:54 AM(UTC)
Joe Payne @ AbleMods LLC

Rank: Member

Groups: Developers
Joined: 11/9/2018(UTC)
Posts: 18

Thanks Judy!

Yea, it takes a lot of time to track down where something on a page is coming from. Something as simple as adding a button the billing section of the admin view-order page drills me down through four different partial views until I finally get where I want to be. And then hooking it up to these huge controller files.......

I see things getting messy fast if we don't come up with a standard for placing customizations. Maybe a ~/CustomViews/ folder?? I don't even know if that would work. Doesn't help with controller files though.

Gonna go buy some stock in BeyondCompare :)
katie_able_support  
#4 Posted : Wednesday, October 2, 2019 9:52:17 AM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 72

Was thanked: 2 time(s) in 2 post(s)
Quote:
I will need to remove the Browse Store menu from the store header for a project that does not require it.


I just went to the Widget Board for the store header and removed the widget 'Store Menu'. Save and now it's gone :)
Joe Payne @ AbleMods LLC  
#5 Posted : Wednesday, October 2, 2019 10:29:50 AM(UTC)
Joe Payne @ AbleMods LLC

Rank: Member

Groups: Developers
Joined: 11/9/2018(UTC)
Posts: 18

Can you be more specific?

I go into Widget Boards, I see "Store Header Menubar"

I click that, Click the Content tab, then I see the various controls.

I click Edit Content button, remove the Store Menu contol from the layout.

I click Save. Go the storefront. The header is still the same, Browse Store is still visible.

Not sure what I'm missing.

FYI the Edit Content action seems to be stuck now. If I go to store front, then return to admin and edit the same widget board, then click the Content tab, I'm now already in edit mode. The Edit Content button is not visible.
katie_able_support  
#6 Posted : Wednesday, October 2, 2019 10:52:01 AM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 72

Was thanked: 2 time(s) in 2 post(s)
Yes, that's exactly what I did. Try viewing it in a different browser or make sure that it's not being cached.

I wanted to also share that we included some information for each widget. If you edit the widget, you'll see a section that refers to its location in the code:

e.g. Store Menu

Controller
AbleCommerce.Controllers.WebpageController

Action
StoreMenu
katie_able_support  
#7 Posted : Wednesday, October 2, 2019 10:53:55 AM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 72

Was thanked: 2 time(s) in 2 post(s)
Make sure you're editing the correct widget board. In a default install, we're using Store Header Compact.

I'll try testing with the other one to see if it works as well.
katie_able_support  
#8 Posted : Wednesday, October 2, 2019 11:34:39 AM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 72

Was thanked: 2 time(s) in 2 post(s)
The change to widget board "Store Header Menubar" worked for me, but I did take one extra step by removing the zone after removing the widget from the board.

Now, one thing that can be confusing happens when you edit a particular page from the retail side. The page will be considered 'customized' and it appears on the listings under Website > Customized Pages in the admin menu.

Once a page is 'customized' from the retail side, you must continue editing from the retail side. This would include the action of removing a widget board and replacing with another. If you are trying to do this on the admin, but the retail page is custom, just switch over to the retail side and make the change there or remove the page customizations.

There are two content features that will update site-wide when changed from any location, and that would be the "HTML Snippets" and the "Widget Boards".

In the next version, we've made it very obvious that a retail page has been customized when you open the design panel. It should help with any confusion about retail page overrides.

Let me know if you have any questions,

Katie
Joe Payne @ AbleMods LLC  
#9 Posted : Wednesday, October 2, 2019 1:17:29 PM(UTC)
Joe Payne @ AbleMods LLC

Rank: Member

Groups: Developers
Joined: 11/9/2018(UTC)
Posts: 18

I'm just checking the home page. According to the customized-pages list, there are no content pages customized. So should be ok there.

I only removed the control from the Contents tab. The zone/region/whatever-its-called was empty but remained.

I went back in just now and removed the region from the Layout tab. Refreshed the home page in a different tab and it's still showing.

I don't understand what I'm doing wrong.
katie_able_support  
#10 Posted : Thursday, October 3, 2019 8:55:42 AM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 72

Was thanked: 2 time(s) in 2 post(s)
Hi Joe,

Is this an install I can access?

Thanks
Katie
Joe Payne @ AbleMods LLC  
#11 Posted : Thursday, October 3, 2019 9:09:47 AM(UTC)
Joe Payne @ AbleMods LLC

Rank: Member

Groups: Developers
Joined: 11/9/2018(UTC)
Posts: 18

It's a local install. We can do a screenshare if you want.
katie_able_support  
#12 Posted : Friday, October 4, 2019 9:18:28 AM(UTC)
katie_able_support

Rank: Advanced Member

Groups: Developers, Registered, HelpDesk, System
Joined: 10/29/2018(UTC)
Posts: 72

Was thanked: 2 time(s) in 2 post(s)
Hi Joe,

Sorry for the delay. I had to work on a different project and it took me all day yesterday.

So, I think what will be most helpful is if you can send me your StoreHeaderMenubar.cshtml file from the /Website/Views/Shared/Boards folder.

Also, are you using the final build 5588 of AC9?

Thanks
Katie
Joe Payne @ AbleMods LLC  
#13 Posted : Friday, October 4, 2019 9:20:49 AM(UTC)
Joe Payne @ AbleMods LLC

Rank: Member

Groups: Developers
Joined: 11/9/2018(UTC)
Posts: 18

This was the 5707 plugins test build. Don't worry about it at this point. If we've got another build coming later this month then I'll test it with that. It's probably something I'm doing wrong anyways.
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.