Using Ajax in side menu in nop 2.2

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 Jahre weitere
Hi ,

Has any one applied ajax on the side menu , when u click on the side menu the whole page loads, i dunt wanna load the whole only right hand section which contains the products/categories should load depending on the category clicked from the side menu , is it possible to do something like that
12 Jahre weitere
Hi,

We have done something similar to what you need:

http://www.nop-templates.com/p/3/nop-ajax-filters

To do this you will need:

1. A JQuery script to make a GetProducts $.ajax request.
2. A custom controller and action which will receive the requests and retrieve the products.
3. A custom view with the products, which will be returned by you custom action. This view should be the same as the products grid\list in the default nopCommerce Category template.
4. A JQuery script to replace the default nopCommerce product grid\list container with your view.
5. Also please note that you will have to do the same for the pager, replace it with ajax links, because otherwise the behavior will be inconsistent.

So to summarize and answer your question, this is 100% possible. However it might no be as straightforward as it might seem.

Hope this helps!
12 Jahre weitere
Thats sounds like a load of work to be done to achieve that, and with lack of knowledge for jquery , it is near to impossible to achieve this in a week , its better to buy the plugin , Also does ur plugin offer ajax support throught the website as it only mentions to add filters for search functionality.
12 Jahre weitere
Please have a look at the demo, so that you have an exact idea of what it is doing:

http://demos.nop-templates.com/c/4/notebooks

It does not offer ajax functionality throughout the web site because this would be quite detrimental to the SEO of the web site. That is why for example the Categories navigation is left as it is, so that search engines are able to craw the categories content and from there the products correctly.
Our philosophy is to use ajax where SEO will not be harmed and this is the filtering mechanism. Search engines do not need to cache content based on query string filter parameters.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.