Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Posts
    211
    Plugin Contributions
    0

    Default Send Email Function - add another group to send to

    Hi - I want to amend the send email function. Im not sure im on the right track (i think i am...) but there are that many functions im struggling to work it all out.


    I want to send an email - or add the option to selct customers where group pricing = 1 for example. I will do the same for 2 and 3

    I have opened up mail.php from admin folder and have found this code....

    if ( ($action == 'send_email_to_user') && isset($_POST['customers_email_address']) && !isset($_POST['back_x']) ) {
    $audience_select = get_audience_sql_query(zen_db_input($_POST['customers_email_address']), 'email');
    $mail = $db->Execute($audience_select['query_string']);
    $mail_sent_to = $audience_select['query_name'];
    if ($_POST['email_to']) {
    $mail_sent_to = zen_db_prepare_input($_POST['email_to']);


    there is also similar code referred to as preview



    If this is correct, can someone point me in the right direction on how to add a query to select customers_email_address where customers_group_pricing=1

    and have this as an option to select in the send to function on the email in admin......

  2. #2
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Send Email Function

    Use phpMyAdmin to peek at the queries in the "query_builder" table.
    Those queries are used to build the options in the pulldown menu in all the admin email pages.
    Just add another query to accomplish the task you're after.

    No need to touch any PHP.
    .

    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.

  3. #3
    Join Date
    Jul 2005
    Posts
    211
    Plugin Contributions
    0

    Default Re: Send Email Function

    wow - you really have coded this well - how easy was that!
    Wish I knew how to do stuff like this..oh well
    thanks :)

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Send Email Function

    Pretty cool huh
    It was just one of those things that came up ... hey, wish it could do this ... and ... well ... look what resulted !
    .

    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.

 

 

Similar Threads

  1. Replies: 7
    Last Post: 17 Jan 2014, 03:45 PM
  2. Replies: 0
    Last Post: 26 May 2012, 06:16 AM
  3. trying to send email using tools > send email - get error
    By keylesslocks in forum General Questions
    Replies: 4
    Last Post: 24 Jan 2010, 05:05 PM
  4. Suddanly unable to send Newsletters - no send button
    By Moncia in forum General Questions
    Replies: 0
    Last Post: 26 Aug 2008, 07:23 AM
  5. How do I send BCC to myself when I Send Email to Customer?
    By Zinfandel in forum General Questions
    Replies: 3
    Last Post: 20 Aug 2008, 01:55 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