Close

Profile: Deni

Avatar

User posts

10 years ago

haknesh wrote:
Hi,

I'm displaying 10 manufacturers in the menu. Normally you expect to display also a extra link 'View all' that brings you to a page with a list of all manufacturers. But i could not find this in the settings. Is this possible to make this? and where do i have to be to make such a change?

Thanks in advance.


Hello,

The Manufacturers item in the Mega Menu is a link to all manufacturers page.

When the manufacturer menu template is set to "Manufacturers in list" and the setting "Maximum number of manufacturers:" is less than all available manufacturers, then a "View All" link will automatically appear as last item in the manufacturers dropdown.

You can find these settings under the "Manufacturer Menu Settings" tab in the Mega Menu administration.

Best Regards !

Hello,

I think this will help you:

The best and easiest way is to add custom widget zone in your SupportedWidgetZones.xml file in the Anywhere Sliders plug-in folder.

Name it as you wish. Example:   <WidgetZone>your_widget_zone</WidgetZone>

Now, go to your _ColumnsTwo.cshtml file and place this code where you want to see the slider:

@{
    var controllerName = Url.RequestContext.RouteData.Values["controller"];

    if (controllerName != null && string.Compare(controllerName.ToString(), "Home", StringComparison.InvariantCultureIgnoreCase) == 0)
    {
        @Html.Widget("your_widget_zone")
    }
}


Next, restart the application (or rebuild the solution).

Finally go to the admin site of the slider and select the new widget zone.

Now you must see the slider on the homepage.

Best Regards !

10 years ago

IT-Direkt wrote:
Hi,

in MegaMenu i show all top level category in a separate menu.
Now i would like to highlight the current menu item.

For example:
Top level: Houses
Secon level: Livingroom

If i visit Livingroom i would like MegaMenu item "Houses" highlighted.

Thanking you in advance...



Hello,

The easiest way to do this is by JavaScript.

I wrote a small JS for you:

    
// Now via the class "activeTopLevelCategory" you can style your active category.
    var path = window.location.pathname;
    $('.mega-menu a[href="' + path + '"]').parents('.mega-menu > li').first().addClass('activeTopLevelCategory');


You can add this code for example in your theme javascript file: ~\Themes\your-theme\Content\scripts\your-theme.js

Now you can style the active category via the class(you can change it by your taste).

Best Regards!

10 years ago

Lucrasoft wrote:
Hey DENI,

Thanks for your reply. I managed to solve it myself but please tell me if you have some better way to do it. I am using the InfiniteCategories template ...

I am doing a loop through first category of the MenuCategoryModel in the helper called CreateSubLists instead of doing a loop once through the model itself.

Anyhow, it works great so feel free to close this thread if you want.


Hello,

Yes, this is the one of the best ways to achieve what you want. Great work!

Best Regards!

10 years ago

Lucrasoft wrote:
I would like to skip the first level category since my categories are divided into root categories. I am using multiple stores so I used a root category to distinguish them from each other. So I want the categories within "Shop1" to be shown in the menu instead of "Shop1" itself with its subcategories.

Is there any way to do this? Feel free to ask for clarification if I am being unclear.

Thanks.


Hello,

Which category template are you using? You can see this in the admin site of the Mega Menu > Category Menu Settings > Category Menu Template.

Waiting for your response.

Regards!

Hello,

You can do this by following these steps:

1. You must call the widget zone for the sliders only in your Index.cshtml file, putting its result in a section like this:


@section MainSlider
{
    @Html.Widget("home_page_main_slider")
}


2. You must see which is the layout of this view. If you want to show the slider on upper level(not in the direct layout of the Index view) you must check if the section is defined and define another section, which will be checked in the Layout of the Layout of Index.cshtml.

@if (IsSectionDefined("MainSlider"))
{
    @section MainSlider_UpperLevel1
    {
         @RenderSection("MainSlider")
    }
}


3. If this is the View where you want to show the slider then you must add this code:

@if (IsSectionDefined("MainSlider_UpperLevel1"))
{
    @RenderSection("MainSlider_UpperLevel1")
}



Let`s show you an example:

You have a slider in the Index.cshtml file and want to show it in the _Root.cshtml view. The layout of the Index.cshtml file is let`s say _ColumnsThree.cshtml. And the layout of _ColumnsThree.cshtml is the _Root.cshtml view.

So in Index.cshtml you must have:

@section MainSlider
{
    @Html.Widget("home_page_main_slider")
}



In _ColumnsThree.cshtml you must have:

@if (IsSectionDefined("MainSlider"))
{
    @section MainSlider_UpperLevel1
    {
         @RenderSection("MainSlider")
    }
}


In _Root.cshtml you must have:

@if (IsSectionDefined("MainSlider_UpperLevel1"))
{
    @RenderSection("MainSlider_UpperLevel1")
}




There are many other ways and one of them is this one:

1. Remove the widget zone from your Index.cshtml file.

2. Go to the view where you want to show the slider (for example: _Root.cshtml) and place this code:

@{
    var x = Url.RequestContext.RouteData.Values["controller"];
    @* var x = this.ViewContext.RouteData.Values["controller"]; You can use both this and the upper row to get the controller name *@
}

@if (x != null && string.Compare(x.ToString(), "Home", StringComparison.InvariantCultureIgnoreCase) == 0)
{
    @Html.Widget("home_page_main_slider")
}



Best Regards !

jdyer wrote:
I have run the upgrade script against database. So far, only plugin issue I have is when trying to Install Nop Anywhere Sliders I get the following error: "There is already an object named 'Carousel3DSettings_SLider' in the database. Could not create constraint. See previous errors. "
All other plugins reloaded.
Thank you.


Hello,

From which version do you started upgrading? In the last two versions of nopCommerce we do not have such object: 'Carousel3DSettings_SLider'.

Please provide us more information, so we can be able to help you.

Best Regards !

Bugs
10 years ago

[email protected] wrote:
Here's another really small one.  I turned on "Private Messages" today and the "unread messages" text is wrapping:

https://drive.google.com/file/d/0BxSwbWwuTCU1cEdMbktmcVNzeGM/edit?usp=sharing



Hello,

The design of the theme was made to have only a number. We will fix it ASAP.

Thanks  for reporting.

Best Regards !

10 years ago

ehubcap wrote:
Hi support, running some optimization test on PageSpeed Insights and other engines, we are getting a lower valuation due to this warning (referred to the Logo image plugin)

image has no alt text!
This image is not following part of the Google guidelines. Add alt text.
image has no dimensions (height/width)!

I can't find a way to correct this issue on VS2013
any help solving this will be appreciated
Thank you



Hello,

By default from nopCommerce the logo image comes with empty alt attribute.

<img title="" alt="" src="@Url.Content(logoPath)">


I admit that we haven`t saw that and this is really big fallback from nopCommerce.

You can suggest this to nopCommerce, as we are going to do, so they may fix it.

We are starting to fix it in all our themes.

Thanks for reporting this issue.

Best Regards !

10 years ago

Hello,

We know the good practices used over the web for better SEO. But we still need to follow the nopCommerce model.

Yes, the article you have found is maybe one of the best solutions for faster JS loading and Yes, it can be used in nopCommerce.


You may suggest this JS approach both to our user voice portal and to nopCommerce.

Best Regards !