Author Gary Torello on 05-16-2001 at 10:06 (EST)
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.
|Messages In This Discussion|
| 1. RE: Order Numbers|
Author Bill Weiner on 05-16-2001 at 21:19 (EST)
|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 =~ /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.
| 2. RE: Order Numbers|
Author Gary Torello on 05-17-2001 at 09:51 (EST)
>STEP 3: Do a search on the
>if (($settings =~ /yes/i)
>(There should be only one occurance in
HMMM.. there are NO occurences of this line
| 3. RE: Order Numbers [OOPS]|
Author Gary Torello on 05-17-2001 at 10:48 (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?