Developer forum

Forum » Ecommerce - Standard features » Search Results issue

Search Results issue

Barry Geukdjian
Reply

Has anyone experienced an issue with the search results (in Swift 1.24.0, Dynamicweb 9.16.4) with the search results?

We have an issue with the search result's "View All xx Products for <SearchTerm>" link - it seems to be missing the &q=<SearchTerm> parameter.  Not sure if we did something that caused this but if anyone has any idea what causes the "q" parameter to go missing, I would really appreciate if you could share the solution.

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Barry

I guess you mean this one:

You can test it here:

https://swiftdemo.dynamicweb-cms.com/

The view all link seems to work, but I can see some bug related to showing both view all and no results in the same type ahead....

BR Nicolai

 
Barry Geukdjian
Reply

Hi Nicolai,

Yes, this is working for standard Swift Demo - what I am asking is what could break the View All xx products for <SearchTerm> to not include the &q=<SearchTerm> parameter so I can resolve it.

Can you point us to what we could have possibly changed that's causing this behaviour?  Basically, the View All link doesn't contain the &q= parameter for some reason.  

Regards,

Barry

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

The template looks like this:

https://github.com/dynamicweb/Swift/blob/main/Swift/Files/Templates/Designs/Swift/eCom/ProductCatalog/ProductSearchDropdownResponse.cshtml#L180

Find the lines in 180-182 or where they are in your copy and ensure the structure of markup and classes matches.

It might be different if you are on an older solution of Swift. This works together with the JS so those versions have to be compatible.

 

You must be logged in to post in the forum