Rank: Member
Groups: Authorized User, Developers Joined: 4/7/2021(UTC) Posts: 18
|
I would like to know how to change the menu text. I have found the functionality of the "Browse Store" link to not be very useful when viewing via the mobile menu since it can only display 6 categories (we have a LOT more than that) and the "Product Finder" to be more what we need. So, I would like to change "Browse Store" to say "Categories" (or remove it all together) and change "Product Finder" to say "Browse Store". What file(s) do I need to make these changes in please?
Thanks in advance!
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
I believe you are referring to bypassing the automatic menu and create a manual one, is this what you're referring to?
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 4/7/2021(UTC) Posts: 18
|
Well, not exactly, Ray. Here are the particulars. So, I am currently using the Store Menu Light widget to display a menu on my website. This menu contains the following menu options: Home, Browse Store, Product Finder, Contact Us, Cart (icon) & Search (icon). The Browse Store menu item is limited to only showing 6 categories max. The Product Finder menu option, when clicked, shows all categories on a left sidebar, which is more useful especially when viewing on a mobile device. So, the only thing I am trying to change is the text that shows in the menu for the Browse Store & Product Finder menu options. It should be easy enough. I did find one file that shows this text:
\Areas\Install\Content\LangResources.csv
which contains:
"retail.storemenulight.product_finder","Product Finder"
but when I changed the text and reloaded the site it does not appear to do anything.
So, just looking for a little direction on how I can change this text on the menu.
Other references I found for this text:
"Product Finder" 2 matches in \Controllers\CategoryController.cs 979 [RegisterWidget(DisplayName = "Product Finder", Category = WidgetCategory.Sidebar, Description = "Used with the search results widget, the product finder allows a user to filter by category, brand, keyword, or custom attributes.")] 1 match in \Controllers\ProductController.cs 234 [RegisterWidget(DisplayName = "Search Products", Category = WidgetCategory.General, Description = "Works with the product finder while displaying results from a user’s filtered choices.")] 2 matches in \Models\CategoryModels.cs 253 [DefaultValue("Product Finder")] 259 Caption = "Product Finder"; 2 matches in \Models\WebpageModels.cs 85 [DisplayName("Show Product Finder Link")] 87 [Description("Indicates whether to display the Product Finder menu link.")]
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
The file you are looking for is "_StoreMenuLight.cshtml" Should be under "Site\Themes\Your-Theme\Views\Shared\" DO NOT EDIT THE ONE UNDER SAMPLE, move it to your theme dir and edit there. -Ray Edited by user Sunday, April 18, 2021 1:05:31 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 4/7/2021(UTC) Posts: 18
|
Thanks Ray! However, \Views\Shared resides under the root of the site and not the Theme directory.
I was still able to change the text successfully and it is now displaying how I want!
I changed:
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="300" data-close-others="true">@GetResourceString("retail.storemenulight.browse_store")</a>
to:
<a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="300" data-close-others="true">Categories</a>
AND
<li class="hidden-sm"><a href="@Url.Content("~/Search")" class="tab"><i class="finder"></i>@GetResourceString("retail.storemenulight.product_finder")</a></li>
to:
<li class="hidden-sm"><a href="@Url.Content("~/Search")" class="tab"><i class="finder"></i>Browse Store</a></li>
I of course made a backup copy of the original file.
Thanks again so much for your awesome help, Ray! I really appreciate it!
|
|
|
|
Rank: Advanced Member
Groups: Authorized User, Developers Joined: 2/17/2019(UTC) Posts: 909
Thanks: 3 times Was thanked: 15 time(s) in 15 post(s)
|
The entire menu selection for that particular header is a partial view. To be compliant with MVC standards, you will need to mimic the directory structure under your theme, all the information for the menu structure is within this view file. If you were to start changing it in other places, it will break when you do an upgrade. I have completely, on my site which is still in production, went from a automatic menu, which I hate because of the limitations, to a complete manual Mega Menu with no sub drop downs. Our site was designed that if the user needs another Mega-Menu that's geared more directly to the product or group of products that they're looking for, we have created a contact page for that purpose. In fact we have four different contact pages acting like Mega Menus, each one has a drop-down on the upper right so the user is always two clicks from what they're looking for. I hate drop downs upon drop downs upon drop downs, which is the default in Ablecommerce, but that's just my opinion. Having a manual menu gives me more control. -Ray Menu-2.jpg (783kb) downloaded 9 time(s). Menu-1.jpg (1,141kb) downloaded 5 time(s).Edited by user Sunday, April 18, 2021 2:20:48 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Admin, Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
Hi Dennis, Did you give it a try to ablecommerce inline store editing? Please see the video using this link. Video
|
|
|
|
Rank: Member
Groups: Authorized User, Developers Joined: 4/7/2021(UTC) Posts: 18
|
Well now, how easy is that? Much better than digging around in the code! Call me old school, I guess! This "inline store editing" worked great! Thank you!
|
|
|
|
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.
Important Information:
The AbleCommerce Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close