URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushop_prog_tips
Thread Number: 83
[ Go back to previous page ]

Original Message
"Order Number"

Posted by peteburford [pb@piasoftware.com] on at 03:01 AM
Ushop 3
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.

Table of contents

Messages in this discussion
"Re: Order Number"
Posted by Joseph Pishgar [support@uburst.com] on at 10:35 AM
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.

Regards,
Joseph Pishgar
Support Engineer
Microburst Technologies, Inc.
www.uburst.com


"RE: Order Number"
Posted by Bill Weiner on at 11:33 PM
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!


"Order Number"
Posted by Pete Burford [pb@piasoftware.com] on at 11:01 AM
Bill,
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.


"RE: Order Number"
Posted by Bill Weiner on at 06:16 AM
Thanks for catching that typo.