Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"+" sign after the word "product" in search result


cmbyrne

Recommended Posts

Posted

In the heading of product search results there is a "+" sign after the word "product" in the header of all product search results, anyone know where i have to go to remove this?

 

Thanks

Christina

Posted

The plus is actually an icon to sort. You can click on the price, and sort on that as well.

 

You may wish to replace the + and - with triangles - - look for the "triangles" contrib.

 

If you really want to get rid of it, I'll go find the code to do that.

 

-jared

Posted
The plus is actually an icon to sort.  You can click on the price, and sort on that as well.

 

You may wish to replace the + and - with triangles - - look for the "triangles" contrib.

 

If you really want to get rid of it, I'll go find the code to do that.

 

-jared

 

 

doh, it seems it's always the simplest things I can't figure out :/

 

No need for further assistance, thanks :rolleyes:

Posted

well, if it makes you feel any better, I spent a fair bit of time trying to figure out how to get rid of the + symbol as well . . . BEFORE I realized (or was shown?) what it was actually for.

 

-jared

  • 3 months later...
Posted

The code that produces the + and - sorting symbols is the following code, in catalog/includes/functions/general.php:

 

    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;

 

It seems to me that if you change the last line to read

    return $sort_prefix . $heading;

that the + and - sorting characters will not be displayed.

 

Give it a shot and let us know how it goes.

 

-jared

Archived

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

×
×
  • Create New...