pRieStaKos Posted January 8, 2022 Share Posted January 8, 2022 2 minutes ago, TimRef said: BTW, when I try to buy coffee , show me Failed to verify captcha. do you have any other way to do this ? like paypal Browser issue. Their problem 🙂 I will check the hook tomorrow and get back to you. 0 Quote Link to comment Share on other sites More sharing options...
TimRef Posted January 8, 2022 Author Share Posted January 8, 2022 (edited) Done . we tried another way to pay . when this case is solved . will buy more . anyway , thanks a lot . I will try to fix this take some time . Also hope can get your help . @pRieStaKos Edited January 8, 2022 by TimRef 0 Quote Link to comment Share on other sites More sharing options...
royaljaat111 Posted July 1, 2023 Share Posted July 1, 2023 On 1/1/2022 at 9:02 PM, andrezzz said: Check this out :D! <?php /** * Invoice with Primary/Dedicated IP WHMCS Hook version 1.0 * * @package WHMCS * @copyright Andrezzz * @link https://www.andrezzz.pt * @author André Antunes <andreantunes@andrezzz.pt> */ if (!defined('WHMCS')) { exit(header('Location: https://www.andrezzz.pt')); } use WHMCS\Database\Capsule; add_hook('InvoiceCreation', 1, function($vars) { global $_LANG; $invoiceItems = Capsule::table('tblinvoiceitems')->where('invoiceid', $vars['invoiceid'])->get(); foreach ($invoiceItems as $invoiceItem) { if ($invoiceItem->relid === 0) return; $dedicatedIP = Capsule::table('tblhosting')->where('id', $invoiceItem->relid)->value('dedicatedip'); if ($dedicatedIP === '') return; Capsule::table('tblinvoiceitems')->where('id', $invoiceItem->id)->update(array( 'description' => $invoiceItem->description . "\n" . $_LANG['primaryIP'] . ': ' . $dedicatedIP )); } }); It also have Language support, so that the client can understand what is that line. It didn't work for me. Do I need to modify name of the file or inside this code? 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.