Jump to content

Recieve SMS when you get new Order


Recommended Posts

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

 

 

In my hands i put a code on checkoutscript

 

<META HTTP-EQUIV="Refresh"

CONTENT="5; URL=http://yourdomain.com/thepageyouwantusertobe redirected.html">


Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Just use the code from bendodson's post above, it's pretty easy to setup. I think you'll need to get sms_api.php from Clickatell.

he means the sms_api not the send script!

 

Sounds pretty cool I got my clickatell credits but the ZIP file is gone.

I have reupload it in rapidshare

take it here

http://forums.whmcs.com/viewtopic.php?t=5873

Link to comment
Share on other sites

I'm guessing on this line you replace the phone number and company name with your "real" info?

 

$mysms->send ("YOUR PHONE NUMBER", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");

 

If so, do you leave out the hypens and spaces in the phoner number?

Link to comment
Share on other sites

Thank you for the update.

 

I think I got it installed but I get this message on a blank page when going through the checkout process and the sms never shows up.

 

success message ID: ff8da49c909ab46e280440b78c96c786

 

change your checkoutscripts

 

<?php

require_once ("sms_api.php");

$mysms = new sms();

$mysms->send ("mobilenumberhere", "Your Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");

?>

<html>

<head>

<META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://yourwhmcs.com/clientarea.php">

</head>

</html>

Link to comment
Share on other sites

This is what I have in my checkoutscript.php and it still hangs on the blank success page.

 

<?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 ("XXXXXXXXXX", "My Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");
?>
<html>
<head> 
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://XXXXX.com/clients">
</head> 
</html>

Link to comment
Share on other sites

change to this One!!

 

<?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(); 
$mysms->send ("XXXXXXXXXX", "My Company", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");
?>
<html>
<head> 
<META HTTP-EQUIV="Refresh" CONTENT="1; URL=http://XXXXX.com/clients">
</head> 
</html>

Link to comment
Share on other sites

Weird...same result. I get the success message but no meta refresh or sms.

 

<?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();

$mysms->send ("XXXXXXXXXX", "XXXX", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");

?>

<html>

<head>

<META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients">

</head>

</html>

Link to comment
Share on other sites

Weird...same result. I get the success message but no meta refresh or sms.

 

<?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();

$mysms->send ("XXXXXXXXXX", "XXXX", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");

?>

<html>

<head>

<META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients">

</head>

</html>

 

metascript may fail if your browser did not support it

another solution use javascripts redirect or any other redirect script!

 

are you sure

<META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> 

it should be with http like this

<META HTTP-EQUIV="Refresh"
     CONTENT="1; URL=http://www.yourdomain.com/clients"> 

Link to comment
Share on other sites

I'm using IE 7 so I don't think that's the issue. I can't use the h t t p or w w w in my posts until I reach the magic post count.

 

 

 

 

Weird...same result. I get the success message but no meta refresh or sms.

 

<?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();

$mysms->send ("XXXXXXXXXX", "XXXX", "Order: $domains Invoice ID: $invoiceid Product ID: $productid");

?>

<html>

<head>

<META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients">

</head>

</html>

 

metascript may fail if your browser did not support it

another solution use javascripts redirect or any other redirect script!

 

are you sure

<META HTTP-EQUIV="Refresh" CONTENT="1; URL=XXXXX.com/clients"> 

it should be with http like this

<META HTTP-EQUIV="Refresh"
     CONTENT="1; URL=http://yourdomain.com/clients"> 

Link to comment
Share on other sites

Hi Lainard,

Have you another link to the API you mention in your first post in this thread? The link appears broken.

 

 

Thanks

 

Si

 

Added: Duh...always find things after I post. Got it from your rapidshare link. Si.

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...
  • 5 months later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated