Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Email Address Exporter (slight problem)

    Okay, the upgrade added one record to the query_builder table.
    If you delete that (newest) record (usually query_id = 7 ), does anything change?
    .

    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.

  2. #12
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Email Address Exporter (slight problem)

    Quote Originally Posted by DrByte View Post
    Okay, the upgrade added one record to the query_builder table.
    If you delete that (newest) record (usually query_id = 7 ), does anything change?
    Yes, that did the trick!!

    Now for the inevitable question. How can I fix it this?

    Thanks..

  3. #13
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Email Address Exporter (slight problem)

    Now try putting it back again:[FONT="Courier New"]
    INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');
    [/FONT]
    .

    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.

  4. #14
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Email Address Exporter (slight problem)

    Quote Originally Posted by DrByte View Post
    Now try putting it back again:[FONT=Courier New]
    INSERT INTO query_builder (query_category, query_name, query_description , query_string) VALUES ('email,newsletters', 'Customers who have never completed a purchase', 'For sending newsletter to all customers who registered but have never completed a purchase', 'SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased IS NULL');
    [/FONT]
    After putting it back, the problem came back....However please note the ID skipped 7 and went to 8 with the SQL string you pasted. So its 1 to 6 and then 8.

  5. #15
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Email Address Exporter (slight problem)

    After playing with it a little more, I realized that if I edit the SQL syntax to say something other than "NULL" at the line "o.date_purchased", it works. For example, now I have it like this...

    SELECT DISTINCT c.customers_email_address as customers_email_address, c.customers_lastname as customers_lastname, c.customers_firstname as customers_firstname FROM TABLE_CUSTOMERS c LEFT JOIN TABLE_ORDERS o ON c.customers_id=o.customers_id WHERE o.date_purchased > subdate(now(),INTERVAL 3 MONTH) GROUP BY c.customers_email_address order by c.customers_lastname, c.customers_firstname ASC

    The above will work...so my conclusion now is it has something to do with date purchased being zero or null.....Getting so close.....!!

  6. #16
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Email Address Exporter (slight problem)

    "IS NULL" is important to that query, because it specifically selects which customers have no orders.

    For now, you'll have to skip that entry.
    .

    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.

  7. #17
    Join Date
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Email Address Exporter (slight problem)

    I guess I have no choice. But being paranoid, I am not sure the table for customers will hold up in 1.38 in regards to welcome emails/order emails being sent out. I am praying nothing goes wrong when I put it live...

  8. #18
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Email Address Exporter (slight problem)

    Quote Originally Posted by nrg77 View Post
    But being paranoid, I am not sure the table for customers will hold up in 1.38 in regards to welcome emails/order emails being sent out.
    Why ?
    .

    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
    May 2007
    Posts
    181
    Plugin Contributions
    0

    Default Re: Email Address Exporter (slight problem)

    Maybe just afraid of unexplainable problems....

    A thought just popped up in my head thinking maybe I can empty out the customers table and find a way to input all 3500 customers again without importing from SQL (tried that, didn't work) strings.

  10. #20
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Email Address Exporter (slight problem)

    What DB_PREFIX are you using in your configure.php file?
    .

    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 3 FirstFirst 123 LastLast

Similar Threads

  1. 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
  2. email address exporter on 1.3.8
    By vo2sport in forum General Questions
    Replies: 1
    Last Post: 9 Jan 2010, 01:09 PM
  3. email address exporter
    By athena in forum All Other Contributions/Addons
    Replies: 17
    Last Post: 7 Jul 2009, 09:23 PM
  4. Email Address Exporter problem
    By rcrosier in forum General Questions
    Replies: 1
    Last Post: 28 Dec 2006, 07:56 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