altomarketing Posted July 15, 2014 Share Posted July 15, 2014 Do you have registrations or request with fake details ? Or you just want to have your data well updated ? Just uploading this file into your hook folder it will check send and alert to your customers if they dont have : Dont have A good Zip code Dont have A phone number Dont have any other data you want to have always filled as customer (customizable) This is not a hook to avoid register or request a service, it checks all your customer database and send them an alert to each one. Instructions: Upload below file to /includes/hooks/updatecustomer.php Customer an Template email called "CRM - Customer data" Thats all. <?php # function updatecustomer_sendclientmail() { # Template file name $emailtpl = "CRM - Customer data"; # API Command $command = 'SendEmail'; # Admin Username or ID $adminuser = "youradminuser"; //<--ENTER HERE YOUR ADMIN USER $adminid = "1"; #todos pending. $laquery = mysql_query('SELECT * FROM `tblclients` WHERE STATUS NOT IN (\'Closed\',\'Inactive\') and (`address1` =\'\' or `phonenumber` =\'\' or `postcode` = \'\') '); #make array while ($result = mysql_fetch_assoc($laquery)) { $id = $result['id']; $values = array('messagename' => $emailtpl,'customtype' => $general, 'id' => $id,); $apiresults = localAPI($command,$values,$adminuser); logActivity("CRM - Envio $emailtpl a $id - $userid - $email - fin"); } } add_hook('DailyCronJob', 2, 'updatecustomer_sendclientmail'); ?> 0 Quote Link to comment Share on other sites More sharing options...
scysys Posted July 27, 2014 Share Posted July 27, 2014 thank you for this 0 Quote Link to comment Share on other sites More sharing options...
Ashly85 Posted August 12, 2014 Share Posted August 12, 2014 Customer details on how to use the CRM. good post. 0 Quote Link to comment Share on other sites More sharing options...
altomarketing Posted August 13, 2014 Author Share Posted August 13, 2014 :!: Thanks, if you need custom modules contact me. :!: 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.