cwiggers Posted April 21, 2009 Posted April 21, 2009 Can anyone tell me how to change the wording in the email order confirmation that goes to the customer? I am registering people for a charity motorcycle ride and I need to put instructions in the receipt for them. Please help!!! Carol :o
germ Posted April 21, 2009 Posted April 21, 2009 /catalog/includes/languages/english/checkout_process.php define('TEXT_EMAIL_VIA', 'via'); [color="#FF0000"]define('TEXT_INFORMATION', <<<END Put the text you want to add here. As many lines as you need. Take your time. Have a cup of coffee while composing the message. END );[/color] ?> Add the code in red (alter the text to suit). /catalog/checkout_process.php } [color="#FF0000"] $email_order .= EMAIL_SEPARATOR . "\n" . TEXT_INFORMAION . EMAIL_SEPARATOR . "\n";[/color] tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Add the code in red. BACKUP BOTH FILES BEFORE MAKING ANY EDITS. You break it - You buy it. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
cwiggers Posted April 21, 2009 Author Posted April 21, 2009 Thank you for the help. I ran into a problem when adding the code to /catalog/includes/languages/english/checkout_process.php I get the following error message Parse error: syntax error, unexpected $end in /home/childnet/public_html/register/includes/languages/english/checkout_process.php on line 34 This is the code as added at the bottom of the file - did I miss something? define('TEXT_INFORMATION', <<<END On behalf of the Imagine Guild of Seattle Children’s Hospital, thank you for registering for Children’s Ride 14 on Sunday, June 28. Children’s Ride has a new staging area and ride destination! Ride registration and check-in will open at 7:00 am at the Safeco Field Parking Garage. Check-in at the “pre-0registered” table to pick up your registration packet. Come early and enjoy a hot coffee and breakfast catered by Centerplate at Safeco. Breakfast prices vary and not included in ride registration. The WSP escorted ride will depart for Emerald Downs at 10:00 am. Once we arrive at Emerald Downs enjoy a great day of camaraderie, good food and horse racing. Thank you for supporting Seattle Children's Hospital! END ); ?>
germ Posted April 21, 2009 Posted April 21, 2009 Post the entire contents of the file. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
cwiggers Posted April 21, 2009 Author Posted April 21, 2009 Post the entire contents of the file. <?php /* $Id: checkout_process.php 1739 2007-12-20 00:52:16Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 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'); define('TEXT_INFORMATION', <<<END On behalf of the Imagine Guild of Seattle Children’s Hospital, thank you for registering for Children’s Ride 14 on Sunday, June 28. Children’s Ride has a new staging area and ride destination! Ride registration and check-in will open at 7:00 am at the Safeco Field Parking Garage. Check-in at the “pre-0registered” table to pick up your registration packet. Come early and enjoy a hot coffee and breakfast catered by Centerplate at Safeco. Breakfast prices vary and not included in ride registration. The WSP escorted ride will depart for Emerald Downs at 10:00 am. Once we arrive at Emerald Downs enjoy a great day of camaraderie, good food and horse racing. Thank you for supporting Seattle Children's Hospital! END ); ?>
germ Posted April 21, 2009 Posted April 21, 2009 Use this instead: define('TEXT_INFORMATION', 'On behalf of the Imagine Guild of Seattle Children’s Hospital, thank you for registering for Children’s Ride 14 on Sunday, June 28. Children’s Ride has a new staging area and ride destination! Ride registration and check-in will open at 7:00 am at the Safeco Field Parking Garage. Check-in at the “pre-0registered” table to pick up your registration packet. Come early and enjoy a hot coffee and breakfast catered by Centerplate at Safeco. Breakfast prices vary and not included in ride registration. The WSP escorted ride will depart for Emerald Downs at 10:00 am. Once we arrive at Emerald Downs enjoy a great day of camaraderie, good food and horse racing. Thank you for supporting Seattle Children\'s Hospital!'); If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
cwiggers Posted April 21, 2009 Author Posted April 21, 2009 Use this instead: That took care of the error message, but the email has no text message and looks like this: Registration ------------------------------------------------------ Order Number: 160 Detailed Invoice: https://childrens-ride.net/register/account...hp?order_id=160 Date Ordered: Monday 20 April, 2009 Products ------------------------------------------------------ 2 x Golden Spokes Donation for Children's Hospital () = $20.00 Donations 10.00 Golden Spokes Member myself ------------------------------------------------------ Sub-Total: $20.00 Flat Rate (Best Way): $0.00 Total: $20.00 Delivery Address ------------------------------------------------------ Carol wiggers 123 any street issy, WA 98027 United States Billing Address ------------------------------------------------------ Carol wiggers 123 any street issy, WA 98027 United States Payment Method ------------------------------------------------------ Credit Card ------------------------------------------------------ TEXT_INFORMAION------------------------------------------------------
germ Posted April 21, 2009 Posted April 21, 2009 $email_order .= EMAIL_SEPARATOR . "\n" . TEXT_INFORMATON . "\n" . EMAIL_SEPARATOR . "\n"; Put that code in the catalog file in place of what I posted. I had a "typo". :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
cwiggers Posted April 21, 2009 Author Posted April 21, 2009 I am still getting the same results TEXT_INFORMATON ------------------------------------------------------
germ Posted April 21, 2009 Posted April 21, 2009 Post the code you added to the catalog file. I tried this on the contact us code and it works. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
germ Posted April 21, 2009 Posted April 21, 2009 $email_order .= EMAIL_SEPARATOR . "\n" . TEXT_INFORMATION . "\n" . EMAIL_SEPARATOR . "\n"; DAMMIT I MISSPELLED IT AGAIN!!!!!!!!!!! If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
cwiggers Posted April 21, 2009 Author Posted April 21, 2009 That did it! Thank you so much for all your help and for sticking in there until we got it right! I really appreciate it. :lol: Carol childrens-ride.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.