Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 47
  1. #11
    Join Date
    Mar 2006
    Posts
    63
    Plugin Contributions
    0

    Have a Drink Re: email order confirmation to third party

    WOW DrByte you rock!! I was looking at that area but I was banging my head against the wall.I am going to try this today!

  2. #12
    Join Date
    Mar 2006
    Posts
    63
    Plugin Contributions
    0

    Default Re: email order confirmation to third party

    Quote Originally Posted by schoolboy View Post
    Sounds like a Government Department in a Banana Republic.

    It may be an idea to get someone to look at the osCommerce code... while it will definitely NOT work in ZC, the functional parameters will be obvious to a knowledgeable coder and it may speed up the dev of a ZC version, and therefore be cheaper.
    LOL thats funny because it is for a government organization!

  3. #13
    Join Date
    Apr 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: email order confirmation to third party

    Hi,

    I know I am trying to awake a very old thread, but this has been a great information from your side, and helped me a lot.

    Now I have a question, what if I want emails to go to different email ids for different groups.

    I am novice at any coding

  4. #14
    Join Date
    Apr 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: email order confirmation to third party

    Quote Originally Posted by kapil_sb View Post
    Hi,

    I know I am trying to awake a very old thread, but this has been a great information from your side, and helped me a lot.

    Now I have a question, what if I want emails to go to different email ids for different groups.

    I am novice at any coding

    Dr Byte,

    I need your expertise advise on my problem.

    I have used your observer and Notifiers , as adviced in this post earlier. This works like a Dream for me! Thanks very much.

    Now I need this functionality for mutiple Group IDs for sending mail to different email ids.. Is there a way to change the above code and use it?

    I tried using If statement but gives a blank page on opening my website, or 500 error.

    Thanks!

  5. #15
    Join Date
    Jan 2004
    Posts
    60,160
    Blog Entries
    4
    Plugin Contributions
    49

    Default Re: email order confirmation to third party

    Try changing this:
    Code:
        if (!$group_query->EOF && $group_query->fields['customers_group_pricing'] == $this->specialGroupId) {
          zen_mail('', $this->specialGroupEmailAddress,
              $this->orderEmailSubjectPrefix . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
              $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
        }
    to this:
    Code:
        if (!$group_query->EOF) {
          $this->specialGroupEmailAddress = '';
          switch($group_query->fields['customers_group_pricing']) {
            case '1':
              $this->specialGroupEmailAddress = 'email_address_for_group_1@e_mail.com';
              $this->orderEmailSubjectPrefix = 'Order Fulfillment Request from ' . STORE_NAME;
              break;
            case '2':
              $this->specialGroupEmailAddress = 'email_address_for_group_2@e_mail.com';
              $this->orderEmailSubjectPrefix = 'Order Fulfillment Request from ' . STORE_NAME;
              break;
            case '3':
              $this->specialGroupEmailAddress = 'email_address_for_group_3@e_mail.com';
              $this->orderEmailSubjectPrefix = 'Order Fulfillment Request from ' . STORE_NAME;
              break;
            default:
          }
          if ($this->specialGroupEmailAddress != '') 
            zen_mail('', $this->specialGroupEmailAddress,
              $this->orderEmailSubjectPrefix . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
              $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
        }
    And then customize the numbers and email addresses as needed.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



  6. #16
    Join Date
    Apr 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: email order confirmation to third party

    Dr Byte,

    Thanks for all your valuable support.

  7. #17
    Join Date
    Apr 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: email order confirmation to third party

    Sir one more question,

    If I need to send mail to two or more email ids for same Group ID. In that case what shall I Do?

  8. #18
    Join Date
    Jan 2004
    Posts
    60,160
    Blog Entries
    4
    Plugin Contributions
    49

    Default Re: email order confirmation to third party

    Change this:
    Code:
              $this->specialGroupEmailAddress = 'email_address_for_group_3@e_mail.com';
    to this:
    Code:
              $this->specialGroupEmailAddress = 'Name1<email_address_1@e_mail.com>, Name2<email_address_2@e_mail.com>';
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



  9. #19
    Join Date
    Apr 2012
    Posts
    12
    Plugin Contributions
    0

    Default Re: email order confirmation to third party

    Quote Originally Posted by DrByte View Post
    Try changing this:
    Code:
        if (!$group_query->EOF && $group_query->fields['customers_group_pricing'] == $this->specialGroupId) {
          zen_mail('', $this->specialGroupEmailAddress,
              $this->orderEmailSubjectPrefix . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
              $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
        }
    to this:
    Code:
        if (!$group_query->EOF) {
          $this->specialGroupEmailAddress = '';
          switch($group_query->fields['customers_group_pricing']) {
            case '1':
              $this->specialGroupEmailAddress = 'email_address_for_group_1@e_mail.com';
              $this->orderEmailSubjectPrefix = 'Order Fulfillment Request from ' . STORE_NAME;
              break;
            case '2':
              $this->specialGroupEmailAddress = 'email_address_for_group_2@e_mail.com';
              $this->orderEmailSubjectPrefix = 'Order Fulfillment Request from ' . STORE_NAME;
              break;
            case '3':
              $this->specialGroupEmailAddress = 'email_address_for_group_3@e_mail.com';
              $this->orderEmailSubjectPrefix = 'Order Fulfillment Request from ' . STORE_NAME;
              break;
            default:
          }
          if ($this->specialGroupEmailAddress != '') 
            zen_mail('', $this->specialGroupEmailAddress,
              $this->orderEmailSubjectPrefix . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
              $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);
        }
    And then customize the numbers and email addresses as needed.
    Dr Byte ,

    When I use this code, It throws my CSS out of order, and my website shifts completely to left.

    Also all my center boxes also fall out of order.

    Please help.

  10. #20
    Join Date
    Jan 2004
    Posts
    60,160
    Blog Entries
    4
    Plugin Contributions
    49

    Default Re: email order confirmation to third party

    You must use all the code, in context. Just that snippet alone won't work.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.



 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. welcome email problem and order confirmation email problems
    By oneelios in forum General Questions
    Replies: 1
    Last Post: 22 Jan 2010, 11:18 AM
  2. Replies: 4
    Last Post: 9 Jun 2009, 08:17 PM
  3. How do I Edit Order of Order Totals in Order Confirmation Email?
    By toussi in forum Managing Customers and Orders
    Replies: 1
    Last Post: 20 Mar 2009, 08:05 AM
  4. Replies: 0
    Last Post: 23 Jan 2009, 09:59 PM
  5. Did not recieve Order Confirmation email and no order exists in admin
    By gws76 in forum Managing Customers and Orders
    Replies: 4
    Last Post: 19 May 2008, 12:44 AM

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
  •