How to change the text in the facets when showing how many results out of total products?

Solved

How to change the text in the facets when showing how many results out of total products?

martijn18
Excursionist
42 1 3

We are using the Search & Discovery app to make facets. As we are developing our site in the Dutch Language, we noticed a mistranslation. It currently says: '2 korting op 86 producten' which translates to '2 discounts on 86 products'. How can we change this text such that it says '2 van de 86 producten' which would translate to '2 out of 86 products'. I included a picture of how it looks now, and I also included the code which I think should be adjusted.

 <p class="mobile-facets__count">
                  {%- if results.results_count -%}
                    {{ 'templates.search.results_with_count' | t: terms: results.terms, count: results.results_count }}
                  {%- elsif results.products_count == results.all_products_count -%}
                    {{ 'products.facets.product_count_simple' | t: count: results.products_count }}
                  {%- else -%}
                    {{
                      'products.facets.product_count'
                      | t: product_count: results.products_count, count: results.all_products_count
                    }}
                  {%- endif -%}
                </p>

martijn18_0-1722590288021.png


Site is marwijn.com
The password to view is test123

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
11532 2256 2436

This is an accepted solution.

Hi @martijn18 

You can find and edit that text from Online Store > Themes > click "..." in the current theme > Edit default theme content. 

Enter this on search "results_with_count" 

Screenshot 2024-08-02 at 16.34.20.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

View solution in original post

Replies 2 (2)

Dan-From-Ryviu
Shopify Partner
11532 2256 2436

This is an accepted solution.

Hi @martijn18 

You can find and edit that text from Online Store > Themes > click "..." in the current theme > Edit default theme content. 

Enter this on search "results_with_count" 

Screenshot 2024-08-02 at 16.34.20.png

- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- En...
Sign up now.

martijn18
Excursionist
42 1 3

Perfect, thank you very much!