Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Email problems


robsavino

Recommended Posts

Posted

Why does my emails look like this? What can I do to fix it?

Rob

C.J. Victoria Fishing Charters and Rod Building

EMAIL_SEPARATOR

EMAIL_TEXT_ORDER_NUMBER 10

EMAIL_TEXT_INVOICE_URL http://www.cjvictoria.com/catalog/account_...php?order_id=10

EMAIL_TEXT_DATE_ORDERED Thursday 19 April, 2007

 

EMAIL_TEXT_PRODUCTS

EMAIL_SEPARATOR

1 x C.J. Victoria Sweat Shirt () = $24.00

EMAIL_SEPARATOR

Sub-Total: $24.00

Flat Rate (Best Way): $5.00

Total: $29.00

 

EMAIL_TEXT_DELIVERY_ADDRESS

EMAIL_SEPARATOR

robert Savino

198 Cottage Park Rd

Winthrop, MA 02152

United States

 

EMAIL_TEXT_BILLING_ADDRESS

EMAIL_SEPARATOR

robert Savino

198 Cottage Park Rd

Winthrop, MA 02152

United States

 

EMAIL_TEXT_PAYMENT_METHOD

EMAIL_SEPARATOR

Cash on Delivery

Posted

Normally it is defined in the includes/languages/english/checkout_process.php

Yours seems to be empty, upload this file again from an original oscommerce source

Posted

the short answer to why, is that the variables (the things in all caps) are undefined.

 

they should be defined in /includes/languages/english/checkout_process.php, i believe.

 

for example, open that file and add the following line:

define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method');

 

you can make the red bit within the second set of quotes read whatever you like.

 

my entire file for /includes/languages/english/checkout_process.php is this:

<?php
/*
 $Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

define('EMAIL_TEXT_SUBJECT', 'Order Process');
define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
define('EMAIL_TEXT_INVOICE_URL', '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');
?>

Posted

Thank you. You guys got it exactly correct. I couldn't figure out why that file was empty. It was a problem uploading it.

Rob

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...