pjs32 Posted April 13, 2008 Share Posted April 13, 2008 Hi, We are finding that the actionhooks.php is not run when someone checks out.(we have checked the box Run Script on CheckOut - not sure if this still applies) The checkout goes thru fine,no erorrs etc,but the below is not being run? any ideas? anyway to debug and see if the actionhook.php is actaully being run? function actionhook_ShoppingCartCheckout($vars) { # This function runs when the user checks out using the shopping cart $idev_query = mysql_query("select amount from tblorders WHERE id='$orderid'"); $idev_query = mysql_fetch_array($idev_query); $idev_saleamt = $idev_query['amount']; $site_url = "http://mydomain.com/sale.php?idev_saleamt=$idev_saleamt&idev_ordernum= $orderid"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $site_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 100); $result = curl_exec($ch); curl_close($ch); } 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted April 13, 2008 Author Share Posted April 13, 2008 It does actually run,but it seems that it is not getting the info it needs. It is not getting the required Order # or Sale Amount Any ideas? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted April 13, 2008 WHMCS CEO Share Posted April 13, 2008 You need to use the code @ http://www.idevdirect.com/whmcs.php Matt 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted April 13, 2008 Author Share Posted April 13, 2008 Matt - you should be knighted - Sir Matt Thank you very much! 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.