Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Disbale Sort by Options on the Products page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-08-2007, 05:32 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default 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
__________________
Version 4.7.7
Reply With Quote
  #2  
Old 08-08-2007, 06:03 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-08-2007, 06:17 AM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Re: Disbale Sort by Options on the Products page

Once again - you are the master
__________________
Version 4.7.7
Reply With Quote
  #4  
Old 09-05-2007, 10:01 AM
 
baronmunchowsen baronmunchowsen is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 31
 

Default 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.
__________________
----------------------------------------
Looking for helpful pointers with his x-cart installation
X-Cart version 4.1.8
Reply With Quote
  #5  
Old 09-05-2007, 10:04 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 09-05-2007, 03:22 PM
 
baronmunchowsen baronmunchowsen is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 31
 

Default Re: Disbale Sort by Options on the Products page

No worries. I;ve updated my signature (I'm using 4.1..

Thanks for that link. I looked through the topics, but couldn't find the answer to the question posted above.

Any ideas?

Much appreciated
__________________
----------------------------------------
Looking for helpful pointers with his x-cart installation
X-Cart version 4.1.8
Reply With Quote
  #7  
Old 09-05-2007, 03:27 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 09-13-2007, 08:19 AM
 
DaveB DaveB is offline
 

Senior Member
  
Join Date: May 2004
Location: UK
Posts: 121
 

Default 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.
__________________
Xcart 4.0.19 Pro
mySQL 5.5.44
PHP 5.3.27
Reply With Quote
  #9  
Old 09-13-2007, 08:24 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Disbale Sort by Options on the Products page

http://forum.x-cart.com/viewtopic.php?t=15416
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 09-13-2007, 08:35 AM
 
DaveB DaveB is offline
 

Senior Member
  
Join Date: May 2004
Location: UK
Posts: 121
 

Default Re: Disbale Sort by Options on the Products page

Excellent! Many thanks.
__________________
Xcart 4.0.19 Pro
mySQL 5.5.44
PHP 5.3.27
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:01 AM.

   

 
X-Cart forums © 2001-2020