URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushp_general_purpose
Thread Number: 231
[ Go back to previous page ]

Original Message
"Order Numbers"

Posted by Gary Torello [gary@hometoyparty.com] on at 10:06 AM

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.


Table of contents

Messages in this discussion
"RE: Order Numbers"
Posted by Bill Weiner on at 09:19 PM
In uShop 3.3, the order numbers are just randomly generated 9 digit numbers (RRRRRRRRR).

As of uShop version 3.4:


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

"RE: Order Numbers"
Posted by Gary Torello [gary@hometoyparty.com] on at 09:51 AM

>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


"RE: Order Numbers [OOPS]"
Posted by Gary Torello [gary@hometoyparty.com] on at 10:48 AM
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?

"RE: Order Numbers [OOPS]"
Posted by Bill Weiner on at 09:37 PM
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:


That should work for you.