osHelpers - Help for your osCommerce store
 
Google Base Feed Germany
iFrame Defender v1.2
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum MVS 8.4 Basic
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | INFOBOXES | 2606   


oscommerce RemoveZerosBestsellers
[2606]
 
 
box_bg_l.gif.
"This contrib shows you how to remove the zeros from the bestsellers infobox so that the bestsellers are numbered as...

1.
2.
3.

Instead of the default

01.
02.
03.

This is a simple conribution that requires no file downloads. it jsut requires a simple change to your general.php file.

===================
Intructions:

Step 1.

Open the file /catalog/includes/functions/general.php

Step 2.

In your general.php file go to this line (it is line # 579 in my file but I have a heavily modded store)...

function tep_row_number_format($number) {
if ( ($number < 10) && (substr($number, 0, 1) != '0') ) $number = '0' . $number;

Step 3.

Change the code above to this...

function tep_row_number_format($number) {
if ( ($number < 10) && (substr($number, 1) != '0') ) $number = '0' . $number;

Step 4.

There is no step #4...YOU'RE DONE!!!

Disclaimer: I have no idea if this change messes up any other processes but so far it is working for me with no problems."

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers