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
    17
    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
    17
    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
    63,692
    Blog Entries
    5
    Plugin Contributions
    184

    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!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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
    17
    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
    17
    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
    63,692
    Blog Entries
    5
    Plugin Contributions
    184

    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!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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
    17
    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
    63,692
    Blog Entries
    5
    Plugin Contributions
    184

    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!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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. v150 Order confirmation to third party email - PROBLEM
    By MelodyW in forum Managing Customers and Orders
    Replies: 4
    Last Post: 17 Dec 2015, 07:45 PM
  2. v153 When order is in "Processing" status send email to third party
    By jdlauletta in forum General Questions
    Replies: 0
    Last Post: 6 Nov 2014, 08:07 PM
  3. Third party templates
    By travellers in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Jan 2009, 03:31 PM
  4. Third Party Gift Certificate
    By BazM in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 25 Nov 2008, 11:17 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR