Using a custom layout for Search Results page

On this site https://b50staging.co.uk/ I am trying to use a custom layout for the search results.

Please search for ‘prestige’ in the search bar in the header. It works, kind of - it will bring up a selection of products in the Prestige range. (I’m not worried about the design for now, just the functionality and getting the looper to work properly.)

I have created a grid to be populated dynamically by products. The row is the provider using Query String post_type=product&s={{dc:query:search_query}}

It works, kind of, but I have three issues:

  1. I would like to show 12 products in the results. It will only show a maximum of 10 products in the results, despite setting it to show 12.
  2. I need a pagination function to show more results.
  3. I would like to order the results by price descending but can’t find the option to do so.

Thanks for any help you can provide!
Shaun

1 Like

Hey Shaun,

Thanks for reaching out!

1.) To show 12 products in the search result, you need to go to Settings > Readings and change the value of Blog pages shown at most from 10 to 12.

2.) The current post pagination element we have doesn’t work if the Looper Provider is present in the Layout Builder. That being said, this will require custom coding to add a pagination functionality that will work when the Looper Provider is enabled. I highly suggest reaching out to 3rd party developers or you can avail the Elite team to do the customization.

3.) To order the product by price, you may check this query.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.