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.
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.
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?
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?
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;
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!
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.
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.
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.