How to Tick Advanced Search Automatically

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
Hi

We want "Advanced Search" & "Search in product description" checkboxes auto-ticked for our nopcommerce store.

How do we do that?

I googled and found that i can be done through Nop.Web/Controllers/CatalogControl but i dont know how to reach there? or how to connect?

I cant find it on FTP files / folders.

Can anyone guide me please? (even after downloading microsoft visual studio, how to connect to an existing nopcommerce site and then how to reach to that CatalogControl folder?)

Please guide me step by step to get this working.

Thank you.
3 years ago
It's a bit brute force, but if you edit this page: \Views\Catalog\Search.cshtml
Find the $(document).ready... at the top and add the two bold lines:
    $(document).ready(function () {
        $("#@Html.IdFor(model => model.adv)").on('click', toggleAdvancedSearch);
        $( "#advs" ).prop( "checked", true );
        $( "#sid" ).prop( "checked", true );

        toggleAdvancedSearch();
    });
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.