Author peteburford on 05-14-2001 at 03:01 (EST)
I would like to show the order number on the 'thankyou page' so that the customer can make a note of it in case he doesn't get his email. (customers make typo's in their email addresses and then accuse us of not sending them an email).
Without an order number it is difficult to track them down.
I have checked the reference section but can't find anything of help.
It would make things easier, if you had a list of fields and variables we can access, saves us having to write you so often.
|Messages In This Discussion|
| 1. Re: Order Number|
Author Joseph Pishgar on 05-14-2001 at 10:35 (EST)
|While that might be a feature in a future version of uShop (TBD), it is currently not a recommended alteration to the e-commerce program.|
The Order Reader can supply you with the customer's information, order number, etc for use in tracking.
Microburst Technologies, Inc.
| 2. RE: Order Number|
Author Bill Weiner on 05-14-2001 at 23:33 (EST)
|If you want, you can see a list of global variables that are accessible throughout the script by taking a look at the top of the "ushop-lib.pl" file. The names should be self explanatory.|
As for adding the order number to the "Thank You" page... that can be done by making a little modification to the ushop.pl script. So if you are familiar with Perl and want to try making the change:
STEP 1: Make a backup of your current ushop.pl file... just in case.
STEP 2: Open your ushop.pl file with any text editor such as WordPad.
STEP 3: Do a search on the following text:
# Replace the USHOP INSTRUCTIONS.
STEP 4: Immediately AFTER that line, add the following line:
$order_instructions .= "< BR >Your order number is: $orderNumber";
STEP 5: Save the script (as TEXT if your editor asks)... and try it out!
| 3. Order Number|
Author Pete Burford on 08-12-2001 at 11:01 (EST)
Thanks, however you were slightly off target..
the following line works ok
$order_instructions .= "Your order number is:$order_number";
Note the variable name is $order_number
and NOT $orderNumber
Many thanks for pointing me in the right direction.
| 4. RE: Order Number|
Author Bill Weiner on 08-13-2001 at 06:16 (EST)
|Thanks for catching that typo.