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