uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Order Numbers

Knowledge Base Lobby : uShop Support Conference : General Questions
Oct-17-17 07:18 AM EST
Original Message
Order Numbers
Author Gary Torello on 05-16-2001 at 10:06 (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!

E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: Order Numbers Bill Weiner, 2001-05-16 21:19:33 (1)
            RE: Order Numbers Gary Torello, 2001-05-17 09:51:07 (2)
                 RE: Order Numbers [OOPS] Gary Torello, 2001-05-17 10:48:26 (3)
                      RE: Order Numbers [OOPS] Bill Weiner, 2001-05-17 21:37:15 (4)

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:

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.
TABLE OF CONTENTS
                 2. RE: Order Numbers
                Author Gary Torello on 05-17-2001 at 09:51 (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]




TABLE OF CONTENTS
                         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?

TABLE OF CONTENTS
                                 4. RE: Order Numbers [OOPS]
                                Author Bill Weiner on 05-17-2001 at 21:37 (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.
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.