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

Product Sort in Version 4.0.0

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-28-2004, 08:49 AM
 
balinor balinor is offline
 

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

Default Product Sort in Version 4.0.0

I'm looking to edit the Sort by: function on the category pages in X-Cart 4.0.0. I'd like to remove the SKU and Default sort, and add my own that correspond to custom fields I have added (i.e. for a jewelry store have it sort by stone and metal). Anyone have an idea of where I can start? I found the template that controls this function, but it doesn't look cut and dry like I had hoped. Thanks in advance!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #2  
Old 11-21-2004, 01:02 PM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

Quote:
I found the template that controls this function

Where is the template located?
Reply With Quote
  #3  
Old 11-21-2004, 03:34 PM
 
balinor balinor is offline
 

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

Default

/main/search_sort_by.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 11-22-2004, 05:51 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

I looked at the search_sort_by.tpl file. I'm looking into adding a couple of "sorts" myself.

What file calls this file? Is it in the products_t.tpl?
Reply With Quote
  #5  
Old 11-22-2004, 05:59 AM
 
balinor balinor is offline
 

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

Default

I know it is called by /customer/main/search_result.tpl
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-22-2004, 06:12 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

I mean how does the sort option appear on the product listings page? Where is it called include file=search_sort_by.tpl I looked in the products_t.tpl page and its not there.
Reply With Quote
  #7  
Old 01-05-2005, 10:24 PM
  supervillainess's Avatar 
supervillainess supervillainess is offline
 

Member
  
Join Date: Dec 2004
Location: Nashville
Posts: 11
 

Default

Maybe something helpful... search_sort_by.tpl is also called from customer/main/subcategories.tpl. Eliminating that particular if statement from subcategories.tpl , has also eliminated the sort function from my products/category page.

I'm not exactly sure why, but the subcategories.tpl is the only other file I've run across that calls the search_sort_by. It's even more anomalous considering that I'm not using any subcategories.
__________________
Version 4.1.8
Reply With Quote
  #8  
Old 01-06-2005, 04:00 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

subcategories.tpl also calls products.tpl within it

notice you can have products listed with subcategories listed above
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 01:11 PM.

   

 
X-Cart forums © 2001-2020