[COLOR=“DarkOrchid”]Is there a way to disable the “sort by” function on the category pages ? I looked through a lot of templates and cannot seem to find reference to it.
Thanks in advance for any help[/COLOR]
You have to edit the categories tpl file.
[quote name=‘miracles’]You have to edit the categories tpl file.[/QUOTE]
[COLOR=“DarkOrchid”]Thanks so much ! Will check it out
What folder would it be in ? [/COLOR]
Skins → Your Skin → Customers -->Views → Categories, may be in components folder, but you search the the word “Sort” their on file.
First Make a backup of those files and than edit :mrgreen:
[quote name=‘miracles’]Skins → Your Skin → Customers -->Views → Categories, may be in components folder, but you search the the word “Sort” their on file.
First Make a backup of those files and than edit :mrgreen:[/QUOTE]
[COLOR=“DarkOrchid”]Maybe Lolly is set up a bit differently ?
In that folder I have categories_multicolumns, categories_tree and categories_tree_simple. I did a search for “sort” and nothing
Definitely make copies first…HUGE mistake not to[/COLOR]
[quote name=‘DawnG’][COLOR=DarkOrchid]Maybe Lolly is set up a bit differently ?
In that folder I have categories_multicolumns, categories_tree and categories_tree_simple. I did a search for “sort” and nothing
Definitely make copies first…HUGE mistake not to[/COLOR] :)[/quote]
Lolly, like all themes, includes a copy of the /base/ templates, which indeed includes the file in which you need to edit:
/skins/YOURSKIN/customer/views/products/components/sorting.tpl
[quote name=‘owenad’]Lolly, like all themes, includes a copy of the /base/ templates, which indeed includes the file in which you need to edit:
/skins/YOURSKIN/customer/views/products/components/sorting.tpl[/QUOTE]
[COLOR=“DarkOrchid”]Ah-ha…that one I could find Thank you !
But please forgive, but I looked the template over very carefully, and I cannot find what I need to edit. Some direction would be absolutely wonderful[/COLOR] !
[quote name=‘DawnG’][COLOR=DarkOrchid]Ah-ha…that one I could find Thank you !
But please forgive, but I looked the template over very carefully, and I cannot find what I need to edit. Some direction would be absolutely wonderful[/COLOR] ! :)[/quote]
If you are just wanting to flat disable the sorting menu/functionality entirely, you basically have two choices:
- Comment out, or blank out that sorting.tpl file (so it does nothing).
1a) To comment-out a smarty file, use {* (the data) *} (can be on different lines)
- Edit the views that you allow your visitors to see, including the default product list view, and remove or comment-out the code that loads the sorting.tpl file.
2a) You’ll need to edit atleast one, if not all of the following files:
Hope this helps!
/skins/YOURSKIN/customer/blocks/list_templates/compact_list.tpl
/skins/YOURSKIN/customer/blocks/list_templates/grid_list.tpl
/skins/YOURSKIN/customer/blocks/list_templates/grid_list2.tpl
/skins/YOURSKIN/customer/blocks/list_templates/products_grid.tpl
/skins/YOURSKIN/customer/blocks/list_templates/products_list.tpl
/skins/YOURSKIN/customer/blocks/list_templates/small_list.tpl
[COLOR=“DarkOrchid”]Thanks MUCH owenad !!! Your instructions were perfect and i was able to remove that coding ! I feel so much better now :)[/COLOR]
[quote name=‘DawnG’][COLOR=DarkOrchid]Thanks MUCH owenad !!! Your instructions were perfect and i was able to remove that coding ! I feel so much better now :)[/COLOR][/quote]
Not a problem, I know CS-Cart very well, always glad to lend a helping hand!