Close

Profile: robinrogne

Avatar

User posts

6 years ago

Hi, I have a issue with Megamenu. I have a huge catalog structure, with a lot of categories and a lot of products. Everytime I reload page or go to a link it seems that megamenu will do a request to server and populate it with its information. After i disable Megamenu the webiste is really fast. So i have concluded that the bottleneck has to be the Megamenu.

First question isn't the response from the controller in Megamenu not chached?
Is there a way to Optimize this request, indexes or something?

6 years ago

I need to customize Instant Search plugin for nopcommerce 3.9.
I have hijacked the call to InstantSearch to my own controller, and planning to add a few extra fields in the json response. But can't figure out what my controller should return. I always get error that it can't read property of null.

What should my controller return?
It looks something like this atm.

[HttpGet]
        public ViewResult GetAllCategoriesByProductSearchTerm(string q)
        {
            var path = Url.RouteUrl("InstantSearch");
            var urlBuilder =
            new System.UriBuilder(Request.Url.AbsoluteUri)
            {
                Path = path,
                Query = $"q={HttpUtility.UrlEncode(q)}"
            };
            string url = urlBuilder.ToString();
            var json = new WebClient().DownloadString(urlBuilder.ToString());
            return JArray.Parse(json);          
        }

Close-menu
6 years ago

Hi i am customizing the responsive mega-menu. I have made a few changes, but there's one thing i cant figure out how to change it properly.
At the top of the menu, there is a close-menu.

<div class="close-menu">
      <span>Close</span>
</div>
.
I would like to add few links in that header, and a dropdown but i cant find where the code is. The only thing i have found for it is css. Is it inserted in some minfied js-file?

Thanks, that did the trick!

When i for instance have 2 dropdowns (using checkboxes), version 3.9 on nopcommerce.
For example i have a dropdown A and a dropdown B. Under A i have selected one option. When i am opening dropdown B and select a option there as well, after i hae select it, dropdown A expands it self. Is there any possibilities to make it not open it self?

6 years ago

Omg.... Yes that's seems to make it appear at least :) Thanks for your quick reply!
Is there any workarounds to make it filter on price range and so on?

6 years ago

I have tried for example at the manufacturer view, there i am able to see the pricerange filter. But not in the search view. Any one that have a clue what possibly could be wrong?

6 years ago

I have tried to change to default clean theme now. And there is no success there either.
I noticed that when i am having the plugin installed, the infinite scrolling is working. But i can't see the panels.

6 years ago

I am currently running Uptown, and all sevenspikes plugins came along with the theme. I'll try with default clean theme, and get back with the result!

6 years ago

Hi I will do that. I dont have any credentials for our products we have bought. I'll talk to my boss about that tomorrow. Yes i have made a few custom modifications in the plugins but not the Ajax filter plugin. I haven't done any modifications in the core, only coded my own plugins.