
cold_realms(@cold_realms)
57 Posts
Customers
Quote from cold_realms on April 6, 2021, 03:40
When displaying a specific category using [Woof] and [Woof_products] shortcodes is there a way for the [woof_found_count] to output the number of items on page load?
Once you filter something the [woof_found_count] shows the correct number as expected but on the initial page load, there is just a blank.
When displaying a specific category using [Woof] and [Woof_products] shortcodes is there a way for the [woof_found_count] to output the number of items on page load?
Once you filter something the [woof_found_count] shows the correct number as expected but on the initial page load, there is just a blank.

cold_realms(@cold_realms)
57 PostsTopic Author
Customers
Quote from cold_realms on April 6, 2021, 04:02
It looks like that shortcode shows blank on page load even with no taxonomy specified.
It looks like that shortcode shows blank on page load even with no taxonomy specified.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 6, 2021, 11:38
Hello
[woof_found_count] - this only shows search results. if there is no search term, nothing will be displayed.
The problem is that when the (any) shortcode is used, there is no global query to the database and it is impossible to get the number of products from this query
Hello
[woof_found_count] - this only shows search results. if there is no search term, nothing will be displayed.
The problem is that when the (any) shortcode is used, there is no global query to the database and it is impossible to get the number of products from this query

cold_realms(@cold_realms)
57 PostsTopic Author
Customers
Quote from cold_realms on April 6, 2021, 19:27
Fair enough and that makes sense.
Is there a way to have that shortcode display a user-selected string until a result is returned?
For Example:
I have it on a page like this: "Results: [woof_found_count] " So on the frontend rather than showing "Results: " It could show " Results: 0 Please Choose a Filter"
Fair enough and that makes sense.
Is there a way to have that shortcode display a user-selected string until a result is returned?
For Example:
I have it on a page like this:"Results: [woof_found_count]" So on the frontend rather than showing "Results: " It could show" Results: 0 Please Choose a Filter"

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 7, 2021, 13:31
Hello
You cam add a HTML <span class = "hide_is_filter">Please Choose a Filter</span>
add CSS
.hide_is_filter .woof_search_is_going{
display: none;
}
read this - https://products-filter.com/manipulate-css-when-search-going/
Hello
You cam add a HTML <span class ="hide_is_filter">Please Choose a Filter</span>
add CSS
.hide_is_filter .woof_search_is_going{
display: none;
}
read this - https://products-filter.com/manipulate-css-when-search-going/

cold_realms(@cold_realms)
57 PostsTopic Author
Customers
Quote from cold_realms on April 7, 2021, 23:55
thanks, I'll test that out
thanks, I'll test that out

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on April 8, 2021, 13:05
Hello
Welcome;)
Hello
Welcome;)