www.uburst.com www.uburst.com

"Order Numbers"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Order Numbers"
Posted by Gary Torello on May-16-01 at 10:06 AM (EST)
Hi!

Some questions regarding the order numbers generated by Ushop (currently running v 3.3)

Is there some rhyme or reason to the the order numbers that are generated?

Is there any way to customize them? Can we make them sequential?

If possible, we would like to even add a 3 or 4 digit/character prefix or suffix based on the billing name.

TIA!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Order Numbers, Bill Weiner, May-16-01, (1)
RE: Order Numbers, Gary Torello, May-17-01, (2)
RE: Order Numbers [OOPS], Gary Torello, May-17-01, (3)
RE: Order Numbers [OOPS], Bill Weiner, May-17-01, (4)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Order Numbers"
Posted by Bill Weiner on May-16-01 at 09:19 PM (EST)
In uShop 3.3, the order numbers are just randomly generated 9 digit numbers (RRRRRRRRR).

As of uShop version 3.4:

http://www.uburst.com/uShop/updates.html

... we added the ability to preceed the order numbers with the date (MMDDYYYY-RRRRRRRRR). This format can be specified at the top of the uShop 3.4 ushop-lib.pl script.

In either version, if you want to prefix the order number with the customer's name, you could try making these modifications to the ushop-lib.pl script:

STEP 1: Make a backup of your current ushop-lib.pl script... just in case.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

if (($settings[46] =~ /yes/i)

(There should be only one occurance in the script.)

STEP 4: Immediately BEFORE that line, add the following line:

$mytempstring = substr($billing_last_name,0,3);
$order_number = "$mytempstring$order_number";

STEP 5: Save the script (as TEXT if your editor asks)... and try it out.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "RE: Order Numbers"
Posted by Gary Torello on May-17-01 at 09:51 AM (EST)

>STEP 3: Do a search on the
>following line:
>if (($settings[46] =~ /yes/i)
>(There should be only one occurance in
>the script.)


HMMM.. there are NO occurences of this line

[V.3.30]


Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Order Numbers [OOPS]"
Posted by Gary Torello on May-17-01 at 10:48 AM (EST)
OOOPS.. never-mind

:::pulls head out of ___:::

(It helps to be looking in the correct script)

anyway.. that worked great! THANKS AGAIN!

NOW.. is there any way to have the order number appear in the email notification subject line?

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "RE: Order Numbers [OOPS]"
Posted by Bill Weiner on May-17-01 at 09:37 PM (EST)
Glad that worked for you. In regard to including the order number in the email notification subject line, check out my reply at this posting:

http://www.uburst.com/dcforum/ushop_prog_tips/68.html

That should work for you.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.