[Skip to main content](#vessel-content)

#   Ascending/Descending Language Overrides

##

- **[Fishwise](/forum/user/35566-fishwise "View Fishwise's Profile")**
- [![Fishwise's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35566-fishwise "View Fishwise's Profile") Topic Author
- [ Offline](/forum/user/35566-fishwise)

Less More

- Posts: 24
- Thank you received: 0
-
-

10 years 5 months ago [\#243571](#243571) by [Fishwise](/forum/user/35566-fishwise "View Fishwise's Profile")  *[Ascending/Descending Language Overrides](/forum/26-product-category-display/885180-ascending-descending-language-overrides#243571 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.7 -- Browser(s) name and version -- : Chrome  Hi there,  I currently have a &quot;sort&quot; filter that sorts price, product name and clicks. I've put in the language overrides:  SORT&#95;DESCENDING&#95;CLICKS=&quot;Most Popular&quot; SORT&#95;ASCENDING&#95;CLICKS=&quot;Least Popular&quot;  I'd like to also change:  Price ascending -&gt; Lowest Price Price descending -&gt; Highest Price Product name ascending -&gt; A-Z Product name descending -&gt; Z-A  However, there doesn't seem to be overrides for this instead the only extra cases of ascending/descending languages used are &quot;SORT&#95;ASCENDING=&quot;%s ascending&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;RECENT=&quot;Older&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;SALES=&quot;Worst sales&quot;&quot;, &quot;ASCENDING=&quot;Ascending&quot;&quot; (and the same for descending).  Is there a way to override the language used for those two filter options? Also, is there a way to remove one option (such as &quot;Least Popular&quot;) but keep the other option (such as &quot;Most Popular&quot;)?  Thanks heaps :)")* was created by *[Fishwise](/forum/user/35566-fishwise "View Fishwise's Profile")*

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.5.1
-- PHP version -- : 7.0.7
-- Browser(s) name and version -- : Chrome

Hi there,

I currently have a "sort" filter that sorts price, product name and clicks. I've put in the language overrides:

SORT_DESCENDING_CLICKS="Most Popular"
SORT_ASCENDING_CLICKS="Least Popular"

I'd like to also change:

Price ascending -&gt; Lowest Price
Price descending -&gt; Highest Price
Product name ascending -&gt; A-Z
Product name descending -&gt; Z-A

However, there doesn't seem to be overrides for this instead the only extra cases of ascending/descending languages used are "SORT_ASCENDING="%s ascending"", "SORT_ASCENDING_RECENT="Older"", "SORT_ASCENDING_SALES="Worst sales"", "ASCENDING="Ascending"" (and the same for descending).

Is there a way to override the language used for those two filter options? Also, is there a way to remove one option (such as "Least Popular") but keep the other option (such as "Most Popular")?

Thanks heaps ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODUxODAtYXNjZW5kaW5nLWRlc2NlbmRpbmctbGFuZ3VhZ2Utb3ZlcnJpZGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 5 months ago [\#243588](#243588) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ascending/Descending Language Overrides](/forum/26-product-category-display/885180-ascending-descending-language-overrides#243588 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.7 -- Browser(s) name and version -- : Chrome  Hi there,  I currently have a &quot;sort&quot; filter that sorts price, product name and clicks. I've put in the language overrides:  SORT&#95;DESCENDING&#95;CLICKS=&quot;Most Popular&quot; SORT&#95;ASCENDING&#95;CLICKS=&quot;Least Popular&quot;  I'd like to also change:  Price ascending -&gt; Lowest Price Price descending -&gt; Highest Price Product name ascending -&gt; A-Z Product name descending -&gt; Z-A  However, there doesn't seem to be overrides for this instead the only extra cases of ascending/descending languages used are &quot;SORT&#95;ASCENDING=&quot;%s ascending&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;RECENT=&quot;Older&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;SALES=&quot;Worst sales&quot;&quot;, &quot;ASCENDING=&quot;Ascending&quot;&quot; (and the same for descending).  Is there a way to override the language used for those two filter options? Also, is there a way to remove one option (such as &quot;Least Popular&quot;) but keep the other option (such as &quot;Most Popular&quot;)?  Thanks heaps :)")*

Hi,

There is.
You can use such translation keys:
SORT_ASCENDING_PRODUCT_NAME
SORT_DESCENDING_PRODUCT_NAME
SORT_ASCENDING_PRICE
SORT_DESCENDING_PRICE
There is no option to keep one type of sorting and remove the other.
You would have to go in the code in administrator/components/com_hikashop/classes/filter.php to skip the display of the ones you don't want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODUxODAtYXNjZW5kaW5nLWRlc2NlbmRpbmctbGFuZ3VhZ2Utb3ZlcnJpZGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Fishwise](/forum/user/35566-fishwise "View Fishwise's Profile")**
- [![Fishwise's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/35566-fishwise "View Fishwise's Profile") Topic Author
- [ Offline](/forum/user/35566-fishwise)

Less More

- Posts: 24
- Thank you received: 0
-
-

10 years 5 months ago [\#243791](#243791) by [Fishwise](/forum/user/35566-fishwise "View Fishwise's Profile")  Replied by *[Fishwise](/forum/user/35566-fishwise "View Fishwise's Profile")* on topic *[Ascending/Descending Language Overrides](/forum/26-product-category-display/885180-ascending-descending-language-overrides#243791 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.7 -- Browser(s) name and version -- : Chrome  Hi there,  I currently have a &quot;sort&quot; filter that sorts price, product name and clicks. I've put in the language overrides:  SORT&#95;DESCENDING&#95;CLICKS=&quot;Most Popular&quot; SORT&#95;ASCENDING&#95;CLICKS=&quot;Least Popular&quot;  I'd like to also change:  Price ascending -&gt; Lowest Price Price descending -&gt; Highest Price Product name ascending -&gt; A-Z Product name descending -&gt; Z-A  However, there doesn't seem to be overrides for this instead the only extra cases of ascending/descending languages used are &quot;SORT&#95;ASCENDING=&quot;%s ascending&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;RECENT=&quot;Older&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;SALES=&quot;Worst sales&quot;&quot;, &quot;ASCENDING=&quot;Ascending&quot;&quot; (and the same for descending).  Is there a way to override the language used for those two filter options? Also, is there a way to remove one option (such as &quot;Least Popular&quot;) but keep the other option (such as &quot;Most Popular&quot;)?  Thanks heaps :)")*

Hi there,

Those keys worked great, thanks ![:)](/media/kunena/emoticons/3.png ":)") This is the language file I have to made overrides (where I appear to be unable to find those keys) [ pastebin.com/JjbNKvEJ](http://pastebin.com/JjbNKvEJ)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODUxODAtYXNjZW5kaW5nLWRlc2NlbmRpbmctbGFuZ3VhZ2Utb3ZlcnJpZGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

10 years 5 months ago [\#243797](#243797) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Ascending/Descending Language Overrides](/forum/26-product-category-display/885180-ascending-descending-language-overrides#243797 "-- HikaShop version -- : 2.6.3 -- Joomla version -- : 3.5.1 -- PHP version -- : 7.0.7 -- Browser(s) name and version -- : Chrome  Hi there,  I currently have a &quot;sort&quot; filter that sorts price, product name and clicks. I've put in the language overrides:  SORT&#95;DESCENDING&#95;CLICKS=&quot;Most Popular&quot; SORT&#95;ASCENDING&#95;CLICKS=&quot;Least Popular&quot;  I'd like to also change:  Price ascending -&gt; Lowest Price Price descending -&gt; Highest Price Product name ascending -&gt; A-Z Product name descending -&gt; Z-A  However, there doesn't seem to be overrides for this instead the only extra cases of ascending/descending languages used are &quot;SORT&#95;ASCENDING=&quot;%s ascending&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;RECENT=&quot;Older&quot;&quot;, &quot;SORT&#95;ASCENDING&#95;SALES=&quot;Worst sales&quot;&quot;, &quot;ASCENDING=&quot;Ascending&quot;&quot; (and the same for descending).  Is there a way to override the language used for those two filter options? Also, is there a way to remove one option (such as &quot;Least Popular&quot;) but keep the other option (such as &quot;Most Popular&quot;)?  Thanks heaps :)")*

Hi,

Yes, the translation keys don't exist be default. You need to add them in the override area of your translation file if you want to use them.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODUxODAtYXNjZW5kaW5nLWRlc2NlbmRpbmctbGFuZ3VhZ2Utb3ZlcnJpZGVzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
