Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how can i replace sort order+- on the product list


Snowman

Recommended Posts

Im wondering if anyone can help me change the product sort order function display on the product listings...

 

instead of the standard + and - a would like to add an up and down arrow image instead.

 

anyone have any ideas on how to edit the code in general.php to achieve this...

 

ive tried several times but i cant get it to work.

 

The code is:

 

////
// Return table heading with sorting capabilities
 function tep_create_sort_heading($sortby, $colnum, $heading) {
   global $PHP_SELF;

   $sort_prefix = '';
   $sort_suffix = '';

//    if ($sortby) {
//      $sort_prefix = '<a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . tep_output_string(TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading) . '" class="productListing-heading">';
//      $sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>';
//    }

   return $sort_prefix . $heading . $sort_suffix;
 }

 

anyone have any suggestions?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...