Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Send Email to Customers Question

    On the send email to customers page, on the drop down you get various options to send bulk emails.

    I would like to contact customers that have never comeplted a purchace but not ALL of them. just ones in say the past week.

    Is there a way to change what ever query pulls the customers that havent made a purchase to limit them by this sort of period of time? perhaps a good one would be 'customers that havent made a purchase last week', so 7 days from 14 days ago?

    Many Thanks,

    Phil
    Phil Rogers
    A problem shared is a problem solved.

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    I think I have a query that should deal with the dates bit, will this work?

    WHERE Date BETWEEN (NOW() - INTERVAL 14 DAY) AND (NOW() - INTERVAL 7 DAY)
    Phil Rogers
    A problem shared is a problem solved.

  3. #3
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    Quote Originally Posted by philip937 View Post
    I think I have a query that should deal with the dates bit, will this work?

    WHERE Date BETWEEN (NOW() - INTERVAL 14 DAY) AND (NOW() - INTERVAL 7 DAY)
    So I think I should be able to use 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 IS NULL

    and i need hep merging the two above?? anyone?
    Phil Rogers
    A problem shared is a problem solved.

  4. #4
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    im assuming i need to join the customers_info table so I have a date (customers_info_date_account_created) to reference but unsure how to do this|?
    Phil Rogers
    A problem shared is a problem solved.

  5. #5
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    You could utilize the mailbeez addon for this and/or the 'recover cart' plugin.

    Might be easier than rolling your own.

  6. #6
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    Quote Originally Posted by Limitless View Post
    You could utilize the mailbeez addon for this and/or the 'recover cart' plugin.

    Might be easier than rolling your own.
    installing a whoe mod rather compared to adding one query to a built in feature?

    my preference is using the send mail page hence why I am trying to establish the correct sql syntax to pull the desired customer info.
    Phil Rogers
    A problem shared is a problem solved.

  7. #7
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    The mod has many more marketing features than 'just' what you are trying to do.

    Perhaps download the mod and look through it for help with your queries?

  8. #8
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    Quote Originally Posted by Limitless View Post
    The mod has many more marketing features than 'just' what you are trying to do.

    Perhaps download the mod and look through it for help with your queries?
    I am aware of its functionality as ive looked at it before. however I am not interested in these features. I simply want to send an email to a specified group of customers based on a query I insert into query builder. cheers anyway, i just need some help with the table joins
    Phil Rogers
    A problem shared is a problem solved.

  9. #9
    Join Date
    Jan 2012
    Posts
    488
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    Code:
    Select
      customers.customers_firstname,
      customers.customers_lastname,
      customers.customers_email_address,
      orders.customers_name,
      orders.date_purchased
    
    From
      customers Inner Join
      orders On orders.customers_id = customers.customers_id
      where date_purchased <= DATE(DATE_SUB(NOW(),INTERVAL 7 DAY))
    Last edited by Limitless; 27 Sep 2013 at 08:05 AM.

  10. #10
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Send Email to Customers Question

    Quote Originally Posted by Limitless View Post
    Code:
    Select
      customers.customers_firstname,
      customers.customers_lastname,
      customers.customers_email_address,
      orders.customers_name,
      orders.date_purchased
    
    From
      customers Inner Join
      orders On orders.customers_id = customers.customers_id
      where date_purchased <= DATE(DATE_SUB(NOW(),INTERVAL 7 DAY))
    The query I need wants to select customers that haven't made a purchase and group by date based on when they signed up. Basically the two elements I posted earlier in this thread need to be combined with another join statement?
    Phil Rogers
    A problem shared is a problem solved.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. v139h Send email to all customers with header and footer question?
    By dustbowl in forum General Questions
    Replies: 2
    Last Post: 31 Jul 2012, 12:43 PM
  2. Send Email To Customers - linebreaks
    By dmagic in forum General Questions
    Replies: 0
    Last Post: 12 Mar 2011, 12:34 PM
  3. Send Email To Customers
    By FatGuyinAZ in forum General Questions
    Replies: 5
    Last Post: 1 Dec 2010, 03:09 AM
  4. Send scheduled email to customers???
    By hifipj in forum General Questions
    Replies: 2
    Last Post: 16 Oct 2007, 02:39 PM
  5. Cannot send customers email
    By bhfruitcakeco in forum General Questions
    Replies: 2
    Last Post: 21 Dec 2006, 09:15 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