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

Remove Sort By Options in product listing

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-11-2013, 09:29 AM
 
jsmyth jsmyth is offline
 

Member
  
Join Date: Nov 2013
Posts: 13
 

Default Remove Sort By Options in product listing

How do I remove the sort by options in product listings in 4.6.1? I'm pulling my hair out here.
__________________
x-cart v4.6
modules: FashionWalk theme (the xcart store)
xMenus (the xcart store)
xBanners2 (the xcart store)
Out-of-stock (kosmos central)
Reply With Quote
  #2  
Old 12-11-2013, 10:27 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Remove Sort By Options in product listing

It needs to be commented out of the appropriate template. I don't see any option in admin settings to remove it.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #3  
Old 12-11-2013, 10:31 AM
 
jsmyth jsmyth is offline
 

Member
  
Join Date: Nov 2013
Posts: 13
 

Default Re: Remove Sort By Options in product listing

Yeah, I got that far. There are two files that I can see (based on the html rendering of the source code) where the code that needs to be commented out might reside. I did so in both instances and nothing happened. I am beyond frustrated.
__________________
x-cart v4.6
modules: FashionWalk theme (the xcart store)
xMenus (the xcart store)
xBanners2 (the xcart store)
Out-of-stock (kosmos central)
Reply With Quote
  #4  
Old 12-11-2013, 10:41 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Remove Sort By Options in product listing

Sorry that it is so frustrating. What skin (template) are you using?

Have you tried webmaster mode? What templates did you comment out the sort options in?
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 12-11-2013, 10:55 AM
 
jsmyth jsmyth is offline
 

Member
  
Join Date: Nov 2013
Posts: 13
 

Default Re: Remove Sort By Options in product listing

I'm using the Ideal Comfort template in this case. I guess the REAL problem is that when you click on a manufacturer, sometimes all of the products associated with that manufacturer are listed, and sometimes they're not. Resetting how the products are sorted in the admin panel will take care of the problem, but the minute someone sorts the listing in the storefront, they will disappear again. I can't for the life of me figure out why this is happening, so I thought I'd remove the option to sort the listing of the products.

As far as I can tell, the file with the code to comment out is skin/common_files/customer/search_sort_by.tpl. (The FashionWalk template also has this file, but that doesn't apply here.) Webmaster Mode is no good for this.
__________________
x-cart v4.6
modules: FashionWalk theme (the xcart store)
xMenus (the xcart store)
xBanners2 (the xcart store)
Out-of-stock (kosmos central)
Reply With Quote
  #6  
Old 12-11-2013, 11:30 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Remove Sort By Options in product listing

Template: /common_files/modules/Manufacturers/customer_manufacturer_products.tpl

Look at line 47:
{include file="customer/dialog.tpl" title=$lng.lbl_products content=$smarty.capture.dialog selected=$sort direction=$sort_direction products_sort_url="manufacturers.php?manufactureri d=`$manufacturer.manufacturerid`" sort=true additional_class="products-dialog"}

Just change sort=true to sort=false

I would recreate this template in ideal_comfort and make the change there, rather than edit the common_files directory at all.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following 2 users thank totaltec for this useful post:
jsmyth (12-11-2013), qualiteam (12-11-2013)
  #7  
Old 12-11-2013, 12:28 PM
 
jsmyth jsmyth is offline
 

Member
  
Join Date: Nov 2013
Posts: 13
 

Default Re: Remove Sort By Options in product listing

That did the trick - thank you so much!
__________________
x-cart v4.6
modules: FashionWalk theme (the xcart store)
xMenus (the xcart store)
xBanners2 (the xcart store)
Out-of-stock (kosmos central)
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 03:36 PM.

   

 
X-Cart forums © 2001-2020