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
Views: 1,470
New Zenner
Hi
Is it possible to display products alphabetically by default?
Thanks
Black Belt
admin > config > layoutsettings > Categories/Products Display Sort Order > select for the options
New Zenner
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.
Black Belt
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.
New Zenner
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
Black Belt
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.
New Zenner
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?
Black Belt
Not without more context...
New Zenner
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
Tell staff why this post should be reviewed.