Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Printing the order form

Printing the order form

Locked

Views: 1,021

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
26 Feb 2010, 11:08 PM
#1
tx_rustler avatar

tx_rustler

New Zenner

Join Date:
Feb 2010
Location:
Texas - The Republic
Posts:
27
Plugin Contributions:
0

Printing the order form

I searched and searched the forum to find a way to print the order form, rather than processing it via a credit card or PayPal. I never did find a solution ( assuming the email goes through with spam filters the way they are was not satisfactory), so I thought I would post what I did here.

Set the option to process checks/money orders and the customer needs to select that option when checking out.

The file includes\languages\english\modules\payment\money_order.php is the key to the solution.

It looks something like this

define('MODULE_PAYMENT_MONEYORDER_TEXT_TITLE', 'Check/Money Order');

define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Please make your check or money order payable to:<br />' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br /><br />Mail your payment to:<br />' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.');

define('MODULE_PAYMENT_MONEYORDER_TEXT_EMAIL_FOOTER', "Please make your check or money order payable to:" . "\n\n" . MODULE_PAYMENT_MONEYORDER_PAYTO . "\n\nMail your payment to:\n" . STORE_NAME_ADDRESS . "\n\n" . 'Your order will not ship until we receive payment.');

The second define is what you see on the screen, the third is the email entry.

(In the second define)Right after the sentence that reads: Your order will not ship until we receive payment.
add this:
<br /><br />Please click this button to print this order form. <a href="javascript:window.print()"><img src="includes/templates/template_default/buttons/english/YOUR_PRINT_ORDER.GIF"></a>

If you do not want to use your own button, you can substitute the following:
<input type="button" value="Print this page" onClick="window.print()">
That puts up a standard windows button.

So the second paragraph ends up looking like this (insure the added part is BEFORE the ending ' )

define('MODULE_PAYMENT_MONEYORDER_TEXT_DESCRIPTION', 'Please make your check or money order payable to:<br />' . MODULE_PAYMENT_MONEYORDER_PAYTO . '<br /><br />Mail your payment to:<br />' . nl2br(STORE_NAME_ADDRESS) . '<br /><br />' . 'Your order will not ship until we receive payment.<br /><br />Please click this button to print this order form. <a href="javascript:window.print()"><img src="includes/templates/template_default/buttons/english/YOUR_PRINT_ORDER.GIF"></a> ');

I photo-shopped the Confirm Order gif so it now reads Print Order, and saved it in the indicated folder. but you can use any appropriate sized button.

I did add a statement telling the customer to click the confirm order button to end the checkout process.

Hope it helps someone. Now if my other post would get solved :(

Jim

4 Mar 2010, 5:05 PM
#2
genko avatar

genko

New Zenner

Join Date:
Mar 2010
Posts:
2
Plugin Contributions:
0

Re: Printing the order form

Thanks! :clap:

8 Oct 2010, 6:10 PM
#3
hakel avatar

hakel

New Zenner

Join Date:
Oct 2010
Location:
Guadalajara, Jal, Mex.
Posts:
1
Plugin Contributions:
0

Re: Printing the order form

Thanks so much!
Your solution has been very helpful for me.