swguy:
Please download the new copy of the mod and follow those instructions (the old step 4 was deleted), then see the faq on my home page where detailed instructions are given for this change.
Thanks Scott
downloaded v1.1a and compared to my installs.
file class.msg_owner.php looks like this :
<?php
class msg_owner extends base {
// Set your mobile number here
var $owner_phone = "MY_NUMBER@MY_PROVIDER.COM";
function msg_owner() {
global $zco_notifier;
$zco_notifier->attach($this, array('NOTIFY_CHECKOUT_PROCESS_AFTER_SEND_ORDER_EMAIL'));
}
function messages_desired() {
if ( defined('SMS_SEND_MESSAGE') && (SMS_SEND_MESSAGE == 'false') ) {
return false;
}
return true;
}
function update(&$callingClass, $eventID) {
if (!$this->messages_desired()) return;
global $order;
$email_text = $order->customer['firstname'] . " " . $order->customer['lastname'] . "\n" . round($order->info['total'], 2) . "\n";
$empty_block = array('NOTHING' => 'NADA');
zen_mail('Shop Owner', $this->owner_phone, 'Chillout Fashions Order', $email_text, STORE_NAME, EMAIL_FROM, $empty_block, "msg_owner",'');
}
}
?>
and line 109 in includes/functions/functions_email.php looks like this (and has been coded this way for many weeks):
if (($module != 'xml_record') || ($module !== 'msg_owner')) {
So, in essence, I have been working with your latest version for weeks but for some (irrelevant) modifications like rounding of the order value and the actual message text wording, yet I am still getting the CAN-SPAM blah blah attached to the SMS.
It is the same story with any of my installed payment modules.
Am I missing something?
I feel that the solution is somewhere in a modification of the file includes/functions/functions_email.php
NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.