cmbyrne Posted December 1, 2004 Posted December 1, 2004 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
Guest Posted December 1, 2004 Posted December 1, 2004 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
cmbyrne Posted December 2, 2004 Author Posted December 2, 2004 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 <{POST_SNAPBACK}> doh, it seems it's always the simplest things I can't figure out :/ No need for further assistance, thanks :rolleyes:
Guest Posted December 2, 2004 Posted December 2, 2004 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
StephenHenry Posted March 9, 2005 Posted March 9, 2005 What if I know what it's for and I still want to remove it? Anyone know how? -Steve
Guest Posted March 10, 2005 Posted March 10, 2005 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.