Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Zero's from Best Seller List


kyleprohaska

Recommended Posts

I need to remove the 0 from the Best Seller list. Since the list is generated I'm sure there's a way to do it, I'm just not sure if it's in the database itself or something in the PHP. I can't seem to find anything.

 

I want 01. Product Name to become 1. Product Name...

 

Any help would be great, thanks everyone!

Link to comment
Share on other sites

In catalog/includes/boxes/best_sellers.php find

     $bestsellers_list .= '<tr><td class="infoBoxContents" valign="top">' . tep_row_number_format($rows) . '.</td><td class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . $best_sellers['products_name'] . '</a></td></tr>';

Replace with

     //$bestsellers_list .= '<tr><td class="infoBoxContents" valign="top">' . tep_row_number_format($rows) . '.</td><td class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . $best_sellers['products_name'] . '</a></td></tr>';
     $bestsellers_list .= '<tr><td class="infoBoxContents" valign="top">' . $rows . '.</td><td class="infoBoxContents"><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">' . $best_sellers['products_name'] . '</a></td></tr>';

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...