Jump to content

xedro99

Member
  • Posts

    9
  • Joined

  • Last visited

Everything posted by xedro99

  1. Tried it, the entire page becomes blank as soon as I use this.
  2. Hi there, I want to display a message and disable access to certain pages (redirect them to add payment method page) if the whmcs account doesn't have a payment method connected to it (I use Stripe). I believe displaying the message can be done via a {if} statement but not sure how to write it, and as for disabling access to certain pages, I guess I must write a hook for it, but again I am not sure what to write. Any help with this would be really nice. Thanks! xedro
  3. Hiya, Recently Stripe made some huge changes, and as I know WHMCS team was quick enough to upgrade WHMCS to support the new changes introduced by Stripe. But the problem I am currently facing is as follows. About a year ago, I hired a freelancing agency to develop a custom WHMCS template for me, and for some time they had updated my template regularly for me, but idk for some reasons, they are not really responding to my upgrade requests anymore, and usually I can make minor changes to WHMCS templates to make them compactable with new WHMCS versions, but since the 7.8+ update, I am really struggling to make my template compatible with WHMCS 7.8. My template is currently compatible with 7.7, but since my business is based in Europe, I really need to get the new Stripe changes implemented in my template ASAP. I am hoping if someone from the community can direct me on how to get started with making required changes in my WHMCS template to make it compatible with WHMCS 7.8, especially the changes with Stripe. I tried to just replace files like creditcard.tpl and other credit card template files in my template with default WHMCS files from the Six folders, but it doesn't really work (it just throws an error message) Just guide me to a link or something where I can find the required changes I need to make in my template. Any help would be really appreciated. Thanks! xedro
  4. Hi there, I am wondering if it is possible to display a text on the client area if the user has no active service. I want to display an <p> in the client area if the user has no active service in his/her account, how shall I proceed ahead with this? what {if} code should I use in the template file of the client area? Thanks! xedro
  5. Hiya, I was just wondering if there is a way to update the cPanel usage stats in WHMCS every 5 minutes or hour instead of daily cron run? any help would be really appreciated. Thanks :) xedro
  6. Hey there, I was wondering if it would be possible to collect the client's credit card information while they sign up. If it is possible then can please someone help me with this. Cheers!
  7. Hi there, I was wondering how do I restrict support ticket departments if a certain service is active. I want to display a ticketing department only if server id "x" is active, if not then hide it.
  8. Hey there everyone, I am currently having trouble in fetching data from the mysql table from the WHMC's database, the table is of a whmcs addon and till not I have used this hook to fetch the data <?php # Get Product Group PIDs Hook # Written by brian! use Illuminate\Database\Capsule\Manager as Capsule; function get_productIDs_for_specified_groups_hook($vars) { if ($vars['templatefile'] == 'products') { $gid = $_SESSION['products']['pid']; $hour = Capsule::table('mod_hb_products')->whereIn('product_id',$gid)->pluck('hourly_cost'); return array("hourlyprice" => $hour); } } add_hook('ClientAreaPageCart', 1, 'get_productIDs_for_specified_groups_hook'); ?> and placed this in the template file (tpl) $hourlyprice but instead of displaying the database value it just displays Array in the tpl, also I want it to fetch the data for universal use within the whmcs templates, not just a single template. any help would be appreciated.
  9. Hi there, I am currently working on a cloud server module where I have built "destroy button" which destroys the server and currently it terminates the server in whmcs as soon as I press the destroy button, but I was wondering how to just delete the order from WHMCS . The code I am using to terminate the server { Capsule::table('tblhosting') ->where('id', $params['serviceid']) ->update( [ 'domainstatus' => 'Terminated', ] ); } How do I just delete the specific order instead of updating the status of the order to terminate? Thanks!
×
×
  • 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