lainard Posted July 20, 2007 Share Posted July 20, 2007 Hi all this is very simple actually. 1. Go signup on http://www.clickatell.com and buy some credit and get Username/password and create http gateway (Read their Manual) 2. download this API http://www.simsonlai.org/sms_api.zip and extract Main directory of your WHMCS 3. Edit Only 3 Line according to your Account on clickatell var $api_id = "YOUR_CLICKATELL_API_NUMBER"; var $user = "YOUR_CLICKATELL_USERNAME"; var $password = "YOUR_CLICKATELL_PASSWORD"; 4. Open includes/checkoutscript.php 5. add this Code : require_once ("sms_api.php"); $mysms = new sms(); echo $mysms->session; echo $mysms->getbalance(); // $mysms->token_pay("1234567890123456"); //spend voucher with SMS credits $mysms->send ("YOUR PHONE NUMBER", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); 6. Save it the file will look like this Your phone number format must be Country code and full phone number without leading Zerro and no trailling + <?php /* ************************************************** ************** WHMCS CheckOut Script ************* ************************************************** You may enter code here which will be run when a user checks out if you have enabled it in Configuration > General Configuration > Other of your WHMCS Admin Area. The following variables are available to you: ************************************************** Order ID: $orderid Order Number: $ordernumber Invoice ID: $invoiceid Product ID: $productid Domains Array: $domains Addons Array: $addons ************************************************** */ require_once ("sms_api.php"); $mysms = new sms(); echo $mysms->session; echo $mysms->getbalance(); // $mysms->token_pay("1234567890123456"); //spend voucher with SMS credits $mysms->send ("154356465", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> WARNING : Last time Do Not forget to activate Run Checkout scripts on your WHMCS General Configration > Others > Run Script on CheckOut Good Luck If you have problem just tell me 0 Quote Link to comment Share on other sites More sharing options...
okihost Posted July 20, 2007 Share Posted July 20, 2007 Very cool! 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted July 20, 2007 Author Share Posted July 20, 2007 Very cool! I hope Matt will Implement it on module so We can decided if client may also get SMS notification about their order and How much they have to pay 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted July 20, 2007 WHMCS CEO Share Posted July 20, 2007 Why would you send an SMS to the client? They know they placed the order as they were there doing it! Matt 0 Quote Link to comment Share on other sites More sharing options...
Nathan123 Posted July 20, 2007 Share Posted July 20, 2007 Why would you send an SMS to the client? They know they placed the order as they were there doing it! Matt I think it may mean the host gets the sms not the client. :wink: 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted July 20, 2007 Author Share Posted July 20, 2007 In Indonesia Client Moslt using ATM to Make payment and confirm us, it will be very handy if they can get Invoice Number so when they make payment VIA ATM or Money Transfer they still have on their hand Invoice number BTW it was just and IDEA wont hurt hehehehe 0 Quote Link to comment Share on other sites More sharing options...
HostingPup Posted July 21, 2007 Share Posted July 21, 2007 Could this be modified to alert of new support tickets? .. Actually, I would LOVE to see this included in the next release. To allow people to get a account with them. Then WHMCS could sms the host of new tickets, orders etc. Come on matt Im hell sure you will Convert ALOT of people from other billing systems 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted July 21, 2007 Share Posted July 21, 2007 Just add it to supportticketsubmit-confirm.tpl in your template and it'll do the same thing for support tickets. 0 Quote Link to comment Share on other sites More sharing options...
bennyboy64 Posted July 22, 2007 Share Posted July 22, 2007 Just add it to supportticketsubmit-confirm.tpl in your template and it'll do the same thing for support tickets. What about emailed tickets? 0 Quote Link to comment Share on other sites More sharing options...
HostingPup Posted July 22, 2007 Share Posted July 22, 2007 That wouldn't work for people who email support@***.com would it? We use the mail pipe system so emails to support, billing, sales etc are piped into the whmcs installation 0 Quote Link to comment Share on other sites More sharing options...
bennyboy64 Posted July 22, 2007 Share Posted July 22, 2007 That wouldn't work for people who email support@***.com would it? We use the mail pipe system so emails to support, billing, sales etc are piped into the whmcs installation Yer, that's what I mean. 0 Quote Link to comment Share on other sites More sharing options...
MACscr Posted July 22, 2007 Share Posted July 22, 2007 you guys are nuts, why not just setup a fwd for emails that to go your order address to be fwded to your cell phone? 0 Quote Link to comment Share on other sites More sharing options...
bennyboy64 Posted July 22, 2007 Share Posted July 22, 2007 you guys are nuts, why not just setup a fwd for emails that to go your order address to be fwded to your cell phone? Because Hostingpup and I live in Australia, and that kind of set-up aint cheap. 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted July 22, 2007 Author Share Posted July 22, 2007 That wouldn't work for people who email support@***.com would it? We use the mail pipe system so emails to support, billing, sales etc are piped into the whmcs installation Possible but you are going to pay alot of money if you get spam on your email 0 Quote Link to comment Share on other sites More sharing options...
bennyboy64 Posted July 22, 2007 Share Posted July 22, 2007 That wouldn't work for people who email support@***.com would it?We use the mail pipe system so emails to support, billing, sales etc are piped into the whmcs installation Possible Where would you insert the code? As I know the pipe.php files e.t.c are all encrypted. 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted July 22, 2007 Share Posted July 22, 2007 Hey, The above code can only be used when placing new orders! IF you want this to work with new tickets, it can only be used if a client opens a ticket via your website. [Thats IT!] From, Adam 0 Quote Link to comment Share on other sites More sharing options...
bennyboy64 Posted July 22, 2007 Share Posted July 22, 2007 Hey, The above code can only be used when placing new orders! IF you want this to work with new tickets, it can only be used if a client opens a ticket via your website. [Thats IT!] From, Adam Yer, I thought so I must admit, it is pretty cool though Keep up the good work. 0 Quote Link to comment Share on other sites More sharing options...
bendobson Posted August 2, 2007 Share Posted August 2, 2007 Hi Trying to get this to work Think its a problem with my checkoutscript.php file i got: <?php require_once ("sms_api.php"); $mysms = new sms(); echo $mysms->session; echo $mysms->getbalance(); // $mysms->token_pay("1234567890123456"); //spend voucher with SMS credits $mysms->send ("mobilenumberhere", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid"); ?> In the script and it is activated to run on checkout, problem is when it is activated and a order goes through it does not go to paypal (my gateway i use) its just a blank page When i take it off it does work. Running latest v of whmcs too Any help would be great Regards Ben 0 Quote Link to comment Share on other sites More sharing options...
lainard Posted August 2, 2007 Author Share Posted August 2, 2007 I think You would better Open ticket in WHMCS client area 0 Quote Link to comment Share on other sites More sharing options...
ppc Posted August 12, 2007 Share Posted August 12, 2007 you guys are nuts, why not just setup a fwd for emails that to go your order address to be fwded to your cell phone? Yeah, thats what I was thinking. Why pay for an SMS service when you can just send an "email" to your phone. 0 Quote Link to comment Share on other sites More sharing options...
Daniel Posted August 12, 2007 Share Posted August 12, 2007 Many of us can't actually do that. Certain providers in the UK dont offer that service. 0 Quote Link to comment Share on other sites More sharing options...
ppc Posted August 12, 2007 Share Posted August 12, 2007 Many of us can't actually do that. Certain providers in the UK dont offer that service. Intersting. Good to know. For all of those in the U.S. though, dont waste money on an SMS service :wink: 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted August 12, 2007 Share Posted August 12, 2007 Many of us can't actually do that. Certain providers in the UK dont offer that service. then you need an A-Q.co.uk email2sms service ... 0 Quote Link to comment Share on other sites More sharing options...
Strats Posted August 15, 2007 Share Posted August 15, 2007 Hi guys, seems like I need some help I did all as described but when clients comes to the final step in the order (step=checkout) he sees a blank page. The order emails comes and the order is placed only that the customer see blank checkout page. Also SMS don't come. In which format you put the phone number next to the $mysms->send ? Thanks a lot, Strats 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted August 15, 2007 Share Posted August 15, 2007 Hi guys,seems like I need some help I did all as described but when clients comes to the final step in the order (step=checkout) he sees a blank page. Has been discussed on other threads You are linkely to have extar spaces/returns after the closing php tags in your checkout script, so remove them 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.