![]() |
Disbale Sort by Options on the Products page
I want to hide the Sort options that appear on the top right hand corner of muliple producst displayed.
Any guidnace on a quick and easy way to disable? Cheers |
Re: Disbale Sort by Options on the Products page
In customer/main/subcategories.tpl, comment out this bit:
{if $sort_fields} <div align="right">{include file="main/search_sort_by.tpl" sort_fields=$sort_fields selected=$search_prefilled.sort_field direction=$search_prefilled.sort_direction url="home.php?cat=`$cat`&"}</div> {/if} |
Re: Disbale Sort by Options on the Products page
Once again - you are the master ;)
|
Re: Disbale Sort by Options on the Products page
Is there a way to do this via the cart settings (admin). How/where do I set the $sort_fields variable to zero so that the code itself chooses not to show the sort options.
I am new to x-cart, and so far, so good, but there seems to be alot of variables which I can't work out where I can set them - this being a case in point. Any advice much appreciated. |
Re: Disbale Sort by Options on the Products page
Welcome to the X-Cart forums! Please start by reading the following thread, which will help you get started and hopefully make your experience here a positive one:
http://forum.x-cart.com/showthread.php?t=23970 Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version so that we can answer your question correctly. Thanks! :) |
Re: Disbale Sort by Options on the Products page
No worries. I;ve updated my signature (I'm using 4.1.8).
Thanks for that link. I looked through the topics, but couldn't find the answer to the question posted above. Any ideas? Much appreciated |
Re: Disbale Sort by Options on the Products page
Thanks! Like I said, that link wasn't an answer to your question. The sort by links can only be removed by commenting them out in the template as mentioned above unfortunately.
|
Re: Disbale Sort by Options on the Products page
Is the only way to do this as an all or nothing solution? Is there any way to remove just one sort option? eg SKU.
|
Re: Disbale Sort by Options on the Products page
|
Re: Disbale Sort by Options on the Products page
Excellent! Many thanks.
|
All times are GMT -8. The time now is 05:41 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.