Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to rename sort links in product listing?

How to rename sort links in product listing?

Views: 752

Results 1 to 8 of 8
15 May 2015, 10:12 AM
#1
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

How to rename sort links in product listing?

Hi there,

just wanted to know how can I change the text for the sorting links in the products listing page, advanced result page, and so on.
I have "PRODOTTO (I)" and I would like to change it in "Ordina per nome PRODOTTO" (that means order by product name).
I've searched through all my zc files with developers tool kit, but didn't find what I was looking for. Even checked my DB but without results.

Also checked all my language define files, but nothing. Where have I to search in order to change that text?
thanks

15 May 2015, 10:24 AM
#2
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: How to rename sort links in product listing?

Try around line 566 of includes/languages/italian.php where you see:
// sort order titles for dropdowns

15 May 2015, 11:05 AM
#3
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

Re: How to rename sort links in product listing?

keneso:

Try around line 566 of includes/languages/italian.php where you see:
// sort order titles for dropdowns

Thanks for your answer :)

Heres the link:
http://www.jollyrogerbay.it/store/index.php?main_page=advanced_search_result&keyword=-&search_in_description=1&categories_id=70&inc_subcat=1&page=1&sort=3a

What you suggested has, however, different text from the ome I want to change :(

16 May 2015, 10:02 AM
#5
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

Re: How to rename sort links in product listing?

keneso:

Look at line 593
define('TABLE_HEADING_PRODUCTS', 'Prodotto (i)');

Tried, but it doesn't work :(

16 May 2015, 10:37 AM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to rename sort links in product listing?

Marco Serge:

I have "PRODOTTO (I)" and I would like to change it in "Ordina per nome PRODOTTO" (that means order by product name).
I've searched through all my zc files with developers tool kit, but didn't find what I was looking for.

What was your search criteria? Was it to specifically find the text all capitalized? CSS can be used to present the text capitalized. Also are you sure you want so much text for that "feature"? Have you looked at your site with a mobile device? Maybe want a lead in heading that indicates there are choices on which to sort.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

16 May 2015, 11:02 AM
#7
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: How to rename sort links in product listing?

Try to see if you have an override for that file
includes/languages/carlisle_fresh/italian.php
Otherwise do a search in the languages folder looking for Prodotto (i)

18 May 2015, 7:04 AM
#8
marco_serge avatar

marco_serge

New Zenner

Join Date:
Jun 2014
Location:
Modena, Italy
Posts:
24
Plugin Contributions:
0

Re: How to rename sort links in product listing?

After lot of time and thanks to both your advices, I've figured it out.

As was saying mc12345678 even if the title was written on video uppercase, on the file it was lover case and mostly it was on different files.

However, after the change I've done to change the sort titles I had noticed that they were changed in the checkout confirmation page too (it uses the same variable) so for that page I had removed the titles (Product, Total, Quantity, and so)

Thaks really to both of you, guys :)