osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Customer ID

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 04-24-2008, 06:06 PM
New Member
 
Join Date: Apr 2008
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
davidolaj is on a distinguished road
Default Customer ID

Hello everybody,

Someone should please tell me how to change my osCMax Customer & Order IDs format to "00001"

Dave.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 04-25-2008, 09:46 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default Re: Customer ID

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 04-26-2008, 12:02 AM
New Member
 
Join Date: Apr 2008
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
davidolaj is on a distinguished road
Default Re: Customer ID

Thank you.

Please where can I change or find the "sprintf" numbers within osCMax files ?

Dave.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 04-26-2008, 07:13 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 405
Thanks: 3
Thanked 63 Times in 61 Posts
Rep Power: 6
met00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the roughmet00 is a jewel in the rough
Default Re: Customer ID

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 10:13 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax