Re: Sorting option wording

Solved

Sorting option wording

thiag
Shopify Partner
3 0 2

Hello everbody,

 

I would like to edit the wording of the sorting options.

 

So I went to theme editor, [...], Edit default theme content.

Then I clicked on the Collections tab and scrolled to the Sorting section.

 

Here I am able to edit the wording for the different sorting options !

 

But ! The changes are not reflecting on the store !

 

Here is the code I am using to display sorting options :

 

{%- for sort_option in collection.sort_options -%}
    <label>
        <span>{{ sort_option.name }}</span>
        <input
            type="radio"
            value="{{ sort_option.value }}"
            name="sort_by"
            {%- if collection.sort_by == sort_option.value -%}checked{%- endif -%}
        >
    </label>
{%- endfor -%}

 

 

I also tried 

 

{{ sort_option.name | t }}

 

 however that is giving errors that the translations are not defined.

 

Am I doing something wrong in the process of changing this wording ?

Should I write something different in code ?

 

Thanks for your help !

 

Thiago

Accepted Solution (1)

AcidPi
Shopify Partner
61 14 16

This is an accepted solution.

Hi @thiag,

If its just the wording and not how the sort is applied, you can do this via the Theme Language Editor without editing any code

Admin > Sales Channels > Themes >
click the [...] next the theme you want to edit > Edit default theme content
In Filter items type sort - you should see Checkout & system Collections sorting
With options to update the default wording for Manual, Best Selling, Az, Za, Price ascending, Price descending, Date ascending, Date descending


Regards

View solution in original post

Replies 2 (2)

ShopDoc
Shopify Partner
65 2 3

You can do it easily via the Shopify search and discovery app. No code needed.

AcidPi
Shopify Partner
61 14 16

This is an accepted solution.

Hi @thiag,

If its just the wording and not how the sort is applied, you can do this via the Theme Language Editor without editing any code

Admin > Sales Channels > Themes >
click the [...] next the theme you want to edit > Edit default theme content
In Filter items type sort - you should see Checkout & system Collections sorting
With options to update the default wording for Manual, Best Selling, Az, Za, Price ascending, Price descending, Date ascending, Date descending


Regards