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

Original Message
"Print Payment Option"

Posted by M Ulm [monteulm@hotmail.com] on at 03:42 PM
Hi
Is there a tmp file created when a customer uses the Print Payment Option? If there is, is there a way to add the order number to the Print Payment Option page, so I could have a phone customer give me the order number and I could go and find the tmp file for that order.
Thanks


Table of contents

Messages in this discussion
"RE: Print Payment Option"
Posted by Bill Weiner on at 04:21 AM
No ".tmp" (or ".order") file is created when a customer uses the "Print" payment option.

If you want an order (and order number) when a customer uses the "Print" payment option, then the easiest thing to do is to use the "Contact Me" or "COD" payment option instead. Both the "Contact Me" and the "COD" payment options will write an order file (and send an email notification) when an order is placed.... and so you can just rename the "Contact Me" or "COD" payment buttons to say "Print".

That is, on the uShop Control Panel, under GENERAL SETTINGS - PAYMENT OPTIONS... just rename the "Contact Me" or "COD" payment buttons and use one of those options instead of the "PRINT" payment option.


"tmp file"
Posted by M Ulm [monteulm@hotmail.com] on at 05:31 AM
What I would like to have is the ability to give the customer a number on the print out of a tmp file, so that if he calls or mails in payment I can go and use the tmp file to get his order information. I don't want an order going into the system everytime someone does the print option, because most will not complete payment.
Will the "Contact me" or "COD do what I need?

"tmp file"
Posted by M Ulm [monteulm@hotmail.com] on at 05:49 AM
I just did a test Print Order and it created a tmp file in my data directory. All I want to do is include the number that ushop used to name that tmp file on the Print Order form. Can you tell me how to do that?
Thanks

"RE: tmp file"
Posted by Bill Weiner on at 03:46 AM
If you are using one of the external payment processing systems or the "custom" payment option, then, Yes, the a ".tmp" file will be created for "Print" orders too.

If you want to include the $order_number at the top of the "Print Form"... there here are some steps:

STEP 1: Make a backup of your current ushop-lib.pl file... just in case.

STEP 2: Open your ushop-lib.pl file with any text editor such as WordPad.

STEP 3: Do a search on the following line:

$order_instructions = $settings[62];

STEP 4: Immediately AFTER that line, add this line:

$order_instructions .= "< BR > < BR > Your order number is: $order_number";

(In the above line, there should NOT be spaces around the two "BR"s.)

STEP 5: Save the script... as TEXT if your editor asks... and try it out!


"payment option"
Posted by M Ulm [monteulm@hotmail.com] on at 03:51 AM
I'm using the print payment option. The only thing I have done that I know of that might cause it to give me tmp files is I tried a paypal solution once.

"RE: tmp file"
Posted by Bill Weiner on at 03:38 AM
So you don't want the order to go through the system? And you don't want an email notification? In that case, No, the "Contact Me" and "COD" option is not what you want to use.

As for getting the order number from the ".tmp" file... the name of the ".tmp" file IS the order number.


"tmp file"
Posted by M Ulm [monteulm@hotmail.com] on at 03:47 AM
But what would help me is for the customer to have the order number on his print out so he could tell me his order number over the phone. Then I could look up the tmp file to get his order information. All the customer would have to give me is his order# and credit card numbers and I could put his order together.