Forums / Basic Configuration / Customize receipts?

Customize receipts?

Started by ricor on 11 May 2012, 7:32 PM · Views: 1,325

Results 1 to 5 of 5
11 May 2012, 7:32 PM
#1
ricor avatar

ricor

New Zenner

Join Date:
May 2012
Posts:
21
Plugin Contributions:
0

Customize receipts?

Is there a way to add text lines to the receipt sent to the customer?

Thanks

11 May 2012, 8:40 PM
#2
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,131
Plugin Contributions:
56

Re: Customize receipts?

By "receipt" do you mean the checkout_confirmation email that is sent?
What kind of information do you want to add?

12 May 2012, 1:49 PM
#3
ricor avatar

ricor

New Zenner

Join Date:
May 2012
Posts:
21
Plugin Contributions:
0

Re: Customize receipts?

We are accepting donations online for our non profit. I would like ot have the confirmation act as a tax write off receipt, so just a statement added to the confirmation.

Thanks

12 May 2012, 4:13 PM
#4
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,131
Plugin Contributions:
56

Re: Customize receipts?

Make a copy of /includes/languages/english/checkout_process.php in /includes/languages/english/YOUR_TEMPLATE/checkout_process.php and edit the new file:

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: checkout_process.php 1969 2005-09-13 06:57:21Z drbyte $
//

define('EMAIL_TEXT_SUBJECT', 'Order Confirmation');
define('EMAIL_TEXT_HEADER', 'Order Confirmation');
define('EMAIL_TEXT_FROM',' from ');  //added to the EMAIL_TEXT_HEADER, above on text-only emails
define('EMAIL_THANKS_FOR_SHOPPING','Thanks for shopping with us today! <add your text here about your non-profit status and the fact that this contribution is deductible>');
define('EMAIL_DETAILS_FOLLOW','The following are the details of your order.');
define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
define('EMAIL_TEXT_INVOICE_URL_CLICK', 'Click here for a Detailed Invoice');
define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:');
define('EMAIL_TEXT_PRODUCTS', 'Products');
define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:');
define('EMAIL_TEXT_TAX', 'Tax:        ');
define('EMAIL_TEXT_SHIPPING', 'Shipping: ');
define('EMAIL_TEXT_TOTAL', 'Total:    ');
define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Delivery Address');
define('EMAIL_TEXT_BILLING_ADDRESS', 'Billing Address');
define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method');

define('EMAIL_SEPARATOR', '------------------------------------------------------');
define('TEXT_EMAIL_VIA', 'via');

// suggest not using # vs No as some spamm protection block emails with these subjects
define('EMAIL_ORDER_NUMBER_SUBJECT', ' No: ');
define('HEADING_ADDRESS_INFORMATION','Address Information');
define('HEADING_SHIPPING_METHOD','Shipping Method');
?>
12 May 2012, 11:43 PM
#5
ricor avatar

ricor

New Zenner

Join Date:
May 2012
Posts:
21
Plugin Contributions:
0

Re: Customize receipts?

Thank you very much!