Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Email Address Exporter - HTML or TEXT

    G'day,

    I'm trying to work through getting the Email Address Exporter add-on to also output whether the customer has chosen to receive HTML or TEXT email.

    I think I can figure out how to make the changes to admin/email_export.php to achieve this.

    I've edited most of the entries in the query_builder table to have the queries return the customers_email_format value.

    But I can't figure out how to change the query for the Administrator option so that I'm returned an appropriate value for customers_email_format.

    The current query is:
    Code:
    select 'ADMIN' as customers_firstname, admin_name as customers_lastname, admin_email as customers_email_address from TABLE_ADMIN where admin_id = $SESSION:admin_id
    Ideally the new query would return customer_email_format set to an appropriate value based on the value specified for the Email Admin Format (ADMIN_EXTRA_EMAIL_FORMAT) set in the configuration table. But I'd be happy to just set it as HTML or TEXT manually.

    Can anyone help me?

    Best Regards, Lloyd Borrett.
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

  2. #2
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: Email Address Exporter - HTML or TEXT

    Attached is my modified admin/email_export.php file.

    After changing the queries in the query_builder table, it works for every option except the Administrator.

    Cheers, Lloyd Borrett.
    Attached Files Attached Files
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

  3. #3
    Join Date
    Mar 2006
    Location
    Rosebud, Victoria, Australia
    Posts
    310
    Plugin Contributions
    2

    Default Re: Email Address Exporter - HTML or TEXT

    Attached is the current contents of my query_builder table with the modified select statements.

    Note: In this version, the Administrator query won't work with the changed email_export.php file.

    Cheers, Lloyd Borrett.
    Attached Files Attached Files
    Zen Cart 1.5.5e, PHP 5.3.29 MySQL 5.5.42

 

 

Similar Threads

  1. v150 Email Address Exporter
    By nuganics in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 11 Mar 2012, 05:20 PM
  2. Email Address Exporter - How can I export the email addresses of every customer?
    By SpencerW in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 14 Oct 2011, 07:35 AM
  3. Email address exporter
    By blind1 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 22 Jan 2010, 07:58 PM
  4. Email Address Exporter
    By buzzville in forum General Questions
    Replies: 3
    Last Post: 28 Jan 2007, 09:29 AM

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