Hey Nuera,
Thanks for the details. I’ll answer them one by one below.
The blank search result is a page. It’s showing up in the result because, by default, the Looper Provider shows all post types. You can edit the Looper Provide to show products only by putting the product post type in the query. The Query String Looper Provider should look like the following:
post_type=product&s={{dc:query:search_query}}
Yes. Just add another container element under the Looper Provider element then set this element’s Condition to Provider Output is empty. The following screenshots will provide more context to the setup described above.
-
In the example below, the Section is the Looper Provider.
-
The 1st Row contains the search result Looper Consumer.
-
The 2nd Row is the container element that I mentioned above. It’ll act as a detector only so it should be outside of the Looper Consumer element.
Try adding the product_tag
and matching it with the search query DC in the Query String so it would look like this post_type=product&product_tag={{dc:query:search_query}}&s={{dc:query:search_query}}
. Please don’t copy that as it’s only an example. It is important that you know how to create a Query String so I’d recommend you check out this post from our core developer Kory: Looper Query String: Featured Products
A Query String is derived from the WP Query mix. You can see all of the queries you can add here https://developer.wordpress.org/reference/classes/wp_query/#tag-parameters
Hope that helps.