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.
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.
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!
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.
Thanks for catching that typo.