Zen Cart Logo
Forums / Basic Configuration / Display products alphabetically

Display products alphabetically

Views: 1,470

Results 1 to 9 of 9
28 Mar 2011, 7:50 PM
#1
green_couch_designs avatar

green_couch_designs

New Zenner

Join Date:
Mar 2010
Location:
Canada
Posts:
46
Plugin Contributions:
0

Display products alphabetically

Hi
Is it possible to display products alphabetically by default?
Thanks

28 Mar 2011, 9:13 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Display products alphabetically

admin > config > layoutsettings > Categories/Products Display Sort Order > select for the options

29 Mar 2011, 4:51 PM
#3
green_couch_designs avatar

green_couch_designs

New Zenner

Join Date:
Mar 2010
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Display products alphabetically

Thanks,
That didn't do it, but I did find the problem. One of the many mods I installed had an overwrite for the default_filter.php. As soon as I removed it the problem was fixed. Hopefully it didn't break something else as I don't know what mod it was part of.
Thanks again.

29 Mar 2011, 6:00 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Display products alphabetically

Files are not included in mods unless there is a need for them, so removing one will break whatever that version was supposed to do. You'll have to test things until you find what is not working... may be tricky if it was an added function that you don't realize is now missing.

29 Mar 2011, 6:29 PM
#5
green_couch_designs avatar

green_couch_designs

New Zenner

Join Date:
Mar 2010
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Display products alphabetically

I have compared the two default_filter.php files and they are different. The one causing problems was an older version copyright 2007, the newer one 2009.
Thanks

29 Mar 2011, 7:45 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Display products alphabetically

So the mod file was missing some code from the recent version. If you want to keep the mod function, whatever it was, you can compare the mod file with a stock v1.3.7 file to find the mod changes, then apply those changes to the newer version of the file.

30 Mar 2011, 3:35 PM
#7
green_couch_designs avatar

green_couch_designs

New Zenner

Join Date:
Mar 2010
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Display products alphabetically

Although there are other differences the line causing the problem was line 131 //$listing_sql .= " order by p.products_sort_order, pd.products_name"; commented out. Any ideas?

30 Mar 2011, 3:46 PM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Display products alphabetically

Not without more context...

30 Mar 2011, 3:53 PM
#9
green_couch_designs avatar

green_couch_designs

New Zenner

Join Date:
Mar 2010
Location:
Canada
Posts:
46
Plugin Contributions:
0

Re: Display products alphabetically

I uncommented line 131 and it works. This job has been ongoing for a year now and finally close to going live.(not my fault!). There was so many mods done to the site I don't remember half of them. This was my first attempt at a Zencart site. Next time I'll keep track of every mod done so I can backtrack.
Thanks