kawagner Posted October 29, 2007 Posted October 29, 2007 Hello- It's been a while and I have seemed to have forgotten where things are and I'm sure this is an easy one. When I click on the category and it brings up the items in that category. My heading looks like this "Product Name+" and I do not know where to go to get rid of the plus sign. Can anyone tell me where I can find this? I have looked everywhere. Thank you - Kim :) Kim
Nullachtfuffzehn Posted October 29, 2007 Posted October 29, 2007 It's in the function tep_create_sort_heading() in includes/general.php
kawagner Posted October 29, 2007 Author Posted October 29, 2007 Hello and thank you for the fast response - I'm in includes/functions/general.php file and here is what I see: // 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; } am I inthe right place and what do I do next. Best regards - Kim Kim
Nullachtfuffzehn Posted October 29, 2007 Posted October 29, 2007 At the following line either the plus or minus sign is added to the column header. You may remove or replace it. But make sure just to remove the sign and not the surrounding single quotes. Otherwise it will lead to an error. $sort_suffix = (substr($sortby, 0, 1) == $colnum ? (substr($sortby, 1, 1) == 'a' ? '+' : '-') : '') . '</a>';
kawagner Posted October 29, 2007 Author Posted October 29, 2007 Thank you so much for all your help. :) Kim Kim
musicmaestro Posted December 31, 2007 Posted December 31, 2007 Hi Manfred I too was looking for this sollution. Thank you! Steve
♥geoffreywalton Posted December 31, 2007 Posted December 31, 2007 Did you know the + and - indicate the display is sorted on that field. Did you try clicking on the headings, the sort order changes ascending , descending. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.