This is a discussion on Customer ID within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hello everybody, Someone should please tell me how to change my osCMax Customer & Order IDs format to "00001&...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hello everybody, Someone should please tell me how to change my osCMax Customer & Order IDs format to "00001" Dave. |
|
#2
| |||
| |||
| you can force it with a sprintf (see PHP: sprintf - Manual ) which will allow you to force the number of characters. ex: sprintf("%05s", $oID);
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
|
#3
| |||
| |||
| Thank you. Please where can I change or find the "sprintf" numbers within osCMax files ? Dave. |
|
#4
| |||
| |||
| in general the oID is called $oID for instance, in the print_order.php files you can find it as: $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); then there is the actual print out to the invoice... <td class="main" colspan="2"><b><?php echo sprintf(HEADING_ORDER_NUMBER, $oID) . ' <small>(' . $order->info['orders_status'] . ')</small>'; ?></b><br></td> Now, there are a number of places that the order id is printed out... you locate those places and you set the oID to be forced to 5 characters with leading 0's. Now you have the information you need to go locate the different places that the oID is used and printed out and fix them. I mean, I know you didn't expect me to do it.
__________________ so endith the lesson<think>sometimes I just sit's and thinks</think> "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Customer Updates - Customer Comments v1.0 | michael_s | New osCommerce Contributions | 1 | 02-18-2008 01:14 PM |
| Customer Updates - Customer Comments v1.0 | michael_s | New osCommerce Contributions | 0 | 10-06-2007 02:16 PM |
| Customer Updates - Customer Comments v1.0 | michael_s | New osCommerce Contributions | 0 | 09-30-2007 08:57 AM |
| Customer Updates - Customer Comments v1.0 | michael_s | New osCommerce Contributions | 0 | 02-17-2007 05:03 AM |
| Customer Updates - Customer Comments v1.0 | michael_s | New osCommerce Contributions | 0 | 02-16-2007 08:02 AM |