Page 4 of 4 FirstFirst ... 234
Results 31 to 37 of 37
  1. #31
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    http://www.zen-cart.com/showthread.p...l-Custom-Email

    Here you go, sorry, not sure what happened there.

    Wait...it keeps shortening it. it's post #138557 titled how to creat an additional custom email

    Can you locate it? The form keeps truncating the address.

  2. #32
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,673
    Plugin Contributions
    6

    Default Re: Can I send extra order confirmation emails based on payment method?

    Found the thread, but I am not seeing anything about the autoloader or notifier that you are referring to ...

    Can you get any more specific on this?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #33
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    In that thread, the fourth message down DrByte send an attachment for the code to install to utilize the auto load/observer method. Thank you.

  4. #34
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,673
    Plugin Contributions
    6

    Default Re: Can I send extra order confirmation emails based on payment method?

    See if this helps get you going ...
    Code:
      function update(&$class, $eventID, $paramsArray = array()) {
        global $order;
        global $order_totals;
    
        for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
          if ($order_totals[$i]['title'] = 'Total:') {
            $this_order_total = strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']);
          }
        }
    
        define('EMAIL_SUBJECT_CC_MSG', 'An important note about your recent purchase.');
        if ($order->info['payment_module_code'] == 'moneygram') {
          define('EMAIL_TEXT_CC_MSG',
          'Dear ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] . "\n\n" .
          'Thank you so much for placing an order with us. Please submit your payment of ' . $this_order_total . ' for order number ' . $paramsArray[0] . '. You may use the following details to complete your Money Gram Money Transfer...' . "\n\n"
          );
        }
        if ($order->info['payment_module_code'] == 'moneyorder') {
          define('EMAIL_TEXT_CC_MSG',
          'Dear ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] . "\n" .
          'Thank you so much for placing an order with us. Please submit your payment of ' . $this_order_total . ' for order number ' . $paramsArray[0] . '. You may use the following details to complete your Money Order ...' . "\n\n"
          );
        }
        zen_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_SUBJECT_CC_MSG, EMAIL_TEXT_CC_MSG, STORE_OWNER, EMAIL_FROM, array('EMAIL_MESSAGE_HTML' => nl2br(EMAIL_TEXT_CC_MSG)),'ccnotice');
      }
    NOTE: I do not know your payment module info on payment_module_code for moneygram so I just stuck in there moneygram ... use the right one for this ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  5. #35
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Thank you so much!! It worked! How do I make a donation to the zen-cart team? Please send me the link. Thank you, thank you!

  6. #36
    Join Date
    Sep 2010
    Posts
    552
    Plugin Contributions
    0

    Default Re: Can I send extra order confirmation emails based on payment method?

    Quote Originally Posted by joyjoy View Post
    Thank you so much!! It worked! How do I make a donation to the zen-cart team? Please send me the link. Thank you, thank you!
    Okay, false alarm but oh so close!! Turns out it's sending the extra email for all orders regardless of the payment module. I'll try to play with it and see if I can figure it out. If anything jumps out at you that would fix this please post. I will follow up as well. Thank you!

  7. #37
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,673
    Plugin Contributions
    6

    Default Re: Can I send extra order confirmation emails based on payment method?

    Could you post your code that you have for:
    /includes/classes/observers/class.sendExtraCcEmailNotice.php
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 
Page 4 of 4 FirstFirst ... 234

Similar Threads

  1. shipping method based on payment method?
    By psr racing in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 27 Apr 2011, 01:25 PM
  2. Payment method based on shipping type?
    By celticwebsolutions in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 12 Dec 2010, 11:25 AM
  3. Shipping based on payment method
    By Prorad in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 30 Oct 2009, 01:43 PM
  4. CAN'T send Newsletters, CAN send emails
    By bethalicea in forum General Questions
    Replies: 0
    Last Post: 24 Feb 2009, 04:34 PM
  5. Payment based on shipping method?
    By Jeff G in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 23 Nov 2008, 10:48 PM

Bookmarks

Posting Permissions

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