Tips and Tricks HQ Forum

Support Forum for Tips and Tricks HQ Products

Register or log in - lost password? (Having an issue with the forum login?)

Search the Forum

Tips and Tricks HQ Forum » WP eStore Forum » WP eStore Tweaks

Download notification to admin for free download via squeeze form

(6 posts) (2 voices)
  • Started 6 months ago by rydale13
  • Latest reply from admin
  • Possible Solutions (Related Topics):
    1. eStore - free downloadable books in list of all books cause ERROR
    2. Stats for Free Downloads - Enhancement?
    3. Free download in eStore not integrating with Mailchimp
    4. Will eMember help with eStore free digital downloads requiring a cart function?
    5. Directing customer to a download page for a free item.

Tags:

No tags yet.

  1. rydale13
    Member

    Hi,

    Is there anyway that I can receive a notification by email once a visitor has downloaded a free file using the squeeze page? This is an important feature that I need to have.

    Thanks!

    Luke

    Posted 6 months ago #
  2. admin
    Key Master

    eStore doesn't have an option for this but it should be doable with a small customization. Let me know if you are okay to modify some PHP code.

    Posted 6 months ago #
  3. rydale13
    Member

    Hi,
    Thanks for getting back to me and apologies for the slow reply! I totally forgot about this topic. Yes. I'm happy to edit PHP aslong as you can tell me what to put and where.

    Thanks again!

    Regards
    Luke

    Posted 3 months ago #
  4. admin
    Key Master

    Open the "ajax_process_download.php" file and find the following line of code:

    $eStore_debug_manager->squeeze_form("Email with the download link sent to: ".$email, ESTORE_LEVEL_SUCCESS);

    Once you find it, add the following just above that line:

    wp_mail("your_email@address.com", "Notification Subject", "Some text that will go in the body of the email");
    Posted 3 months ago #
  5. rydale13
    Member

    Thanks!

    As one last thing, I'd like to add the email address that was used to request the download itself. How would I add this email address to the notification email?

    Thanks for all your help so far.

    Luke

    Posted 3 months ago #
  6. admin
    Key Master

    You can use the following:

    $body = "Some text that will go in the body of the email. The email was sent to: ".$email
    wp_mail("your_email@address.com", "Notification Subject", $body);
    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

Tips and Tricks HQ  | WP Shopping Cart  | WP Affiliate Software  | WordPress Membership Plugin