BigLebowski Posted October 14, 2010 Share Posted October 14, 2010 hi there I added this hook recently. It works with "ClientAdd" but as soon as I change it to "PreCalculateCartTotals" I get the following "gumph" on the client ordering screen: ???????���������????������???? Any ideas? The hook is here: <?php /* ****************************************************** ** Example Hook Function ** Please refer to http://wiki.whmcs.com/Hooks for more info function fred($vars) { $firstname = $vars['firstname']; $lastname = $vars['lastname']; $email = $vars['email']; # Run code to create remote forum account here... } add_hook("PreCalculateCartTotals",1,"fred"); ****************************************************** */ ?> Ta Dude 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted October 14, 2010 Share Posted October 14, 2010 Are you sure that "firstname" and "lastname" are valid variables for that action hook? I would do a print_r($vars) to make sure. 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.