Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Change BestSellers Format from 01. to 1.


Recommended Posts

Does anyone know how to change the format of how the numbers in the bestsellers box is displayed....


I was able to find this in includes/boxes/bestsellers.php:

   $info_box_contents = array();
   $info_box_contents[] = array('text' => BOX_HEADING_BESTSELLERS);

   new infoBoxHeading($info_box_contents, false, false);

   $rows = 0;
   $bestsellers_list = '<table border="0" width="100%" cellspacing="0" cellpadding="1">';
   while ($best_sellers = tep_db_fetch_array($best_sellers_query)) {
     $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 .= '</table>';

   $info_box_contents = array();
   $info_box_contents[] = array('text' => $bestsellers_list);

   new infoBox($info_box_contents);

....but I could only change it Starting Count.....

Link to comment
Share on other sites



ahhh its the little things sometimes...........heheheh


thanks kagg. I would not have gotten that one on my own....


where can I go to learn something like that....what would you suggest to someone who thinks all this is fun ...and wants to learn more.....


:lol: :lol: :lol: :lol:



Link to comment
Share on other sites


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

  • Create New...