Zen Cart Logo
Forums / General Questions / Disabling NEW ORDER Disclaimers

Disabling NEW ORDER Disclaimers

Views: 557

Results 1 to 4 of 4
28 Mar 2011, 2:58 PM
#1
liderbug avatar

liderbug

Zen Follower

Join Date:
Jul 2009
Posts:
104
Plugin Contributions:
0

Disabling NEW ORDER Disclaimers

The [NEW ORDER] email to the store includes 2 disclaimers, Copyright, and several other lines that the store doesn't need. I'd like to turn all unneeded text off because the printer uses 2 sheets of paper with the customers IP and "This email is sent in accord..SPAM.." on the second page. So it's a disclaimer from us to us. :wacko:

I've been able to kill the body of the email or get the disclaimers - nothing in between - can someone tell me where to go (politely) to turn off various parts of the [NEW ORDER] email.

Thanks
Chuck

28 Mar 2011, 3:53 PM
#2
coolcarpartsonline avatar

coolcarpartsonline

Totally Zenned

Join Date:
Feb 2008
Posts:
1,386
Plugin Contributions:
0

Re: Disabling NEW ORDER Disclaimers

If you turn it off (meaning remove it), it will also be removed from the customer email, which I think it illegal. You can however reword it if you wish.

30 Mar 2011, 2:48 AM
#3
liderbug avatar

liderbug

Zen Follower

Join Date:
Jul 2009
Posts:
104
Plugin Contributions:
0

Re: Disabling NEW ORDER Disclaimers

In includes/functions/functions_email.php around line 146 I've added:

if ( strstr($email_subject, "[NEW ORDER]") ) {
then explode the string and reassemble - sans the lines I don't want.
(not quite finished - something about draining the swamp...)

It's just that saying "I got 'my' email address from 'me' and if 'me' doesn't want email from 'me' then I should contact 'me' ...

Bottom line is I'm trying to make the order fit on 1 piece of paper.

30 Mar 2011, 2:09 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Disabling NEW ORDER Disclaimers

You could customize the order class and add the disclaimer only to the customer email with something like this ...

    // bof: separate disclaimer
    // include disclaimer
    $customer_disclaimer = '';
    if (defined('EMAIL_DISCLAIMER') && EMAIL_DISCLAIMER != '') $customer_disclaimer .= "\n-----\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS) . "\n\n";
    // include copyright
    if (defined('EMAIL_FOOTER_COPYRIGHT')) $customer_disclaimer .= "\n-----\n" . EMAIL_FOOTER_COPYRIGHT . "\n\n";

    while (strstr($email_order, ' ')) $email_order = str_replace(' ', ' ', $email_order);

    $html_msg['EMAIL_FIRST_NAME'] = $this->customer['firstname'];
    $html_msg['EMAIL_LAST_NAME'] = $this->customer['lastname'];
    //  $html_msg['EMAIL_TEXT_HEADER'] = EMAIL_TEXT_HEADER;
    $html_msg['EXTRA_INFO'] = '';
    $this->notify('NOTIFY_ORDER_INVOICE_CONTENT_READY_TO_SEND', array('zf_insert_id' => $zf_insert_id, 'text_email' => $email_order . $customer_disclaimer, 'html_email' => $html_msg));
    zen_mail($this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id, $email_order . $customer_disclaimer, STORE_NAME, EMAIL_FROM, $html_msg, 'checkout', $this->attachArray);
    // eof: separate disclaimer