X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Disbale Sort by Options on the Products page (https://forum.x-cart.com/showthread.php?t=33122)

zebu 08-08-2007 05:32 AM

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

balinor 08-08-2007 06:03 AM

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}

zebu 08-08-2007 06:17 AM

Re: Disbale Sort by Options on the Products page
 
Once again - you are the master ;)

baronmunchowsen 09-05-2007 10:01 AM

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.

balinor 09-05-2007 10:04 AM

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! :)

baronmunchowsen 09-05-2007 03:22 PM

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

balinor 09-05-2007 03:27 PM

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.

DaveB 09-13-2007 08:19 AM

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.

balinor 09-13-2007 08:24 AM

Re: Disbale Sort by Options on the Products page
 
http://forum.x-cart.com/viewtopic.php?t=15416

DaveB 09-13-2007 08:35 AM

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.