Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

The word Product Name under the categories shows with a + (plus sign) after it...


kawagner

Recommended Posts

Posted

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

Posted

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

Posted

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>';

  • 2 months later...
Posted

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 ======>>>>>.

Archived

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

×
×
  • Create New...