- This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Tweaks › Download notification to admin for free download via squeeze form
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
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.
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
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");
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
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);