osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

How to access and edit Welcome and Order emails?

This is a discussion on How to access and edit Welcome and Order emails? within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am using OSCMax 2.0 It has been modded with the 'Purchase Without Account' option I dont think it has ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-21-2006, 11:18 AM
New Member
 
Join Date: Nov 2005
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Goweb
Default How to access and edit Welcome and Order emails?

I am using OSCMax 2.0

It has been modded with the 'Purchase Without Account' option

I dont think it has been patched. It was downloaded around 11/6/2005

The URL is www.digitalcheap.com

Problem 1:

It seems that emails are not being sent to the customer after they place an order.

They get the Welcome email when they create an account.

Below is the partial code relating to sending out email, from the catalog/checkout_process.php page


------ Start Code --------------------------------------------------------------


// lets start with the email confirmation
// LINE ADDED: PWA - Add test for PWA - no display of invoice URL if PWA customer
if (!tep_session_is_registered('noaccount')) {
$email_order = STORE_NAME . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
if ($order->info['comments']) {
$email_order .= tep_db_output($order->info['comments']) . "\n\n";
}
$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
EMAIL_SEPARATOR . "\n" .
$products_ordered .
EMAIL_SEPARATOR . "\n";
} else {
$email_order = STORE_NAME . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
if ($order->info['comments']) {
$email_order .= tep_db_output($order->info['comments']) . "\n\n";
}
$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
EMAIL_SEPARATOR . "\n" .
$products_ordered .
EMAIL_SEPARATOR . "\n";
}

for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
$email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
}

if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
}

$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
if (is_object($$payment)) {
$email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" .
EMAIL_SEPARATOR . "\n";
$payment_class = $$payment;
$email_order .= $payment_class->title . "\n\n";
if ($payment_class->email_footer) {
$email_order .= $payment_class->email_footer . "\n\n";
}
}
tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

// send emails to other people
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
}


----- End Code -------------------------------------------------------------



Problem 2:

How do I access the Welcome and New Order Email content so I can edit them?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following User Says Thank You to Goweb For This Useful Post:
altenter (04-01-2007)
Sponsored Links
Advertisement
  #2  
Old 01-26-2006, 09:18 AM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 227
Thanks: 10
Thanked 32 Times in 18 Posts
Rep Power: 8
JohnW has a spectacular aura aboutJohnW has a spectacular aura about
Default RE: How to access and edit Welcome and Order emails?

I don't know why it's not sending the order emails but I have the answer for Problem 2.

Edit welcome emails in admin/includes/languages/english/create_account_process.php

Edit order emails depending on what you are looking to edit /includes/languages/english/checkout_process.php
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 05-01-2006, 03:05 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
Default RE: How to access and edit Welcome and Order emails?

That location does not make alot of sense since it does not hold any of the data that is used to generate the email and its content, it merely defines which fields should be in the email itself.

In oscommerce I could edit the order email, but for some reason in OSCMAX I have not yet been able to locate the actual file with the email content in it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 05-01-2006, 05:55 PM
osCMax Testing Team
 
Join Date: Nov 2002
Location: Orlando
Posts: 227
Thanks: 10
Thanked 32 Times in 18 Posts
Rep Power: 8
JohnW has a spectacular aura aboutJohnW has a spectacular aura about
Default RE: How to access and edit Welcome and Order emails?

Are you telling me that the information is not there or that you don't think it shoud be there? In other words did you look?
__________________
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 05-01-2006, 11:33 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,982
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: RE: How to access and edit Welcome and Order emails?

Quote:
Originally Posted by JohnW
Edit welcome emails in admin/includes/languages/english/create_account_process.php

Edit order emails depending on what you are looking to edit /includes/languages/english/checkout_process.php
John is correct. The email text is edited in the exact files that he specified...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 05-06-2006, 01:42 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
Default RE: Re: RE: How to access and edit Welcome and Order emails?

languages/english/checkout_process contains the following information?

<?php
/*
$Id: checkout_process.php,v 1.1.1.1.2.1.2.2 2005/09/21 20:57:22 Michael Sasek Exp $

osCMax Power E-Commerce
http://oscdox.com

Copyright (c) 2005 osCMax, 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');
?>

So what am I missing here, nothing here will allow me to alter what is displayed in the email.? or am I being a plank? (likely)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 05-06-2006, 01:49 PM
Member
 
Join Date: Feb 2006
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
spottedhaggis
Default RE: Re: RE: How to access and edit Welcome and Order emails?

I actually need to be able to remove all prices from being displayed in the order email sent to clients, but have no idea how to. Can anyone help me with that side of it at all?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 05-06-2006, 02:54 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,982
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default RE: Re: RE: How to access and edit Welcome and Order emails?

For the structure you need to edit /catalog/checkout_process.php and/or checkout_success.php

For the text, also see /includes/languages/english/checkout_success.php

You know, all you need is a text editor that can search across files, then search for a text string in the email. This way you never, ever, EVER, have to wait for someone to do this exact thing for you...

I know people think I am like rainman and know every single osCMax constant, but my secret is UltraEdit and its neato 'Find in Files' feature. It just searches through EVERY file in osCMax, and tells me what files that search string is in. I highly recommend it.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
edit order when order is pending chitta_rn osCMax v2 Customization/Mods 0 01-14-2006 08:41 AM
Modifying Emails -- Update Order Status pgowder osCommerce 2.2 Modification Help 5 07-16-2005 03:37 AM
Disable order emails to customer? Rich2005 osCommerce 2.2 Modification Help 0 06-13-2005 08:15 AM
Order emails cigarjoe2003 osCMax v1.7 Installation 2 11-25-2004 12:03 AM
Language of the dates in order edit emails? Lynoure osCMax v1.7 Discussion 0 01-18-2004 09:15 AM


All times are GMT -8. The time now is 01:30 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax