Page 13 of 14 FirstFirst ... 311121314 LastLast
Results 121 to 130 of 136
  1. #121
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Re: Make a sale, get a text message

    You're right - these instructions are outdated. The email archive change was circa 1.3.7, and the CAN_SPAN was added in 1.3.8. I will update the documentation shortly.

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #122
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Re: Make a sale, get a text message

    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.
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #123
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Make a sale, get a text message

    Quote Originally Posted by swguy View Post
    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
    Last edited by frank18; 7 Dec 2010 at 03:10 PM.

  4. #124
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,537
    Plugin Contributions
    127

    Default Re: Make a sale, get a text message

    You have:

    ($module !== 'msg_owner')) {

    Please change to:

    ($module != 'msg_owner')) {
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #125
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Make a sale, get a text message

    Quote Originally Posted by swguy View Post
    You have:

    ($module !== 'msg_owner')) {

    Please change to:

    ($module != 'msg_owner')) {
    That's what I had initially and it wouldn't do the trick, hence changed it to !==

  6. #126
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Make a sale, get a text message

    Changed back to

    ($module != 'msg_owner')) {
    still same result: no go. CAN-SPAM etc still shows up in the SMS

  7. #127
    Join Date
    Jan 2010
    Posts
    42
    Plugin Contributions
    0

    Default Re: Make a sale, get a text message

    Quote Originally Posted by frank18 View Post
    Changed back to



    still same result: no go. CAN-SPAM etc still shows up in the SMS
    You can try my files and see if they work for you. I did add to the sql file and changed class.msg_owner.php so that I can set the text address and turn on and off logging from the admin.
    Attached Files Attached Files

  8. #128
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Make a sale, get a text message

    Quote Originally Posted by cycochuck View Post
    You can try my files and see if they work for you. I did add to the sql file and changed class.msg_owner.php so that I can set the text address and turn on and off logging from the admin.
    Thanks cycochuck. I'll have a play with this on the weekend.

  9. #129
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Make a sale, get a text message

    Quote Originally Posted by frank18 View Post
    Thanks cycochuck. I'll have a play with this on the weekend.
    Installed your version, love the ability to change address and logging in admin, BUT the CAN-SPAM garbage still appears in the SMS. Although this does not affect the operation of the store, it absolutely cheeses me off that I can't fix this issue

  10. #130
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: Make a sale, get a text message

    Fixed the suppression of the CAN-SPAM garbage in the SMS message body in the file includes/functions/functions_email.php

    around line 108 replaced


    Code:
          if ($module != 'xml_record') {
            if (!strstr($email_text, sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS)) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS && !defined('EMAIL_DISCLAIMER_NEW_CUSTOMER')) $email_text .= "\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS);
            if (defined('EMAIL_SPAM_DISCLAIMER') && EMAIL_SPAM_DISCLAIMER != '' && !strstr($email_text, EMAIL_SPAM_DISCLAIMER) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS) $email_text .= "\n" . EMAIL_SPAM_DISCLAIMER;
          }
    with this

    Code:
          // this suppresses the email disclaimer and CAN-SPAM in SMS on sale message
          if ($module == 'msg_owner') {
             define('EMAIL_DISCLAIMER', ''); 
             define('EMAIL_SPAM_DISCLAIMER', '');
          } 
          // EOF suppression of the email disclaimer and CAN-SPAM in SMS on sale message
          else {
          if ($module != 'xml_record') {
            if (!strstr($email_text, sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS)) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS && !defined('EMAIL_DISCLAIMER_NEW_CUSTOMER')) $email_text .= "\n" . sprintf(EMAIL_DISCLAIMER, STORE_OWNER_EMAIL_ADDRESS);
            if (defined('EMAIL_SPAM_DISCLAIMER') && EMAIL_SPAM_DISCLAIMER != '' && !strstr($email_text, EMAIL_SPAM_DISCLAIMER) && $to_email_address != STORE_OWNER_EMAIL_ADDRESS) $email_text .= "\n" . EMAIL_SPAM_DISCLAIMER;
            }
          }

 

 
Page 13 of 14 FirstFirst ... 311121314 LastLast

Similar Threads

  1. Replies: 2
    Last Post: 20 Feb 2013, 11:59 PM
  2. Color For The Sale Message
    By jaguarx in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 27 Oct 2009, 07:03 AM
  3. Sale Text Message
    By ttmb33 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2009, 06:31 AM
  4. Replies: 14
    Last Post: 29 Sep 2007, 03:07 AM
  5. Sale Message goes here
    By zahoorahmad in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 15 May 2006, 07:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg