Jump to content

vb2cans

Member
  • Posts

    6
  • Joined

  • Last visited

About vb2cans

vb2cans's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. This code is using a ClientAreaFooterOutput hook to inject a JavaScript snippet into the footer of the client area pages. This script hides all domain nameserver input fields by selecting elements with names starting with "domainns" and then hiding the closest parent element with the class "col-sm-4." This is an effective approach to hide the domain nameserver input fields on the client area pages. When the page loads, the script will run, and all the nameserver input fields will be hidden. You will also need to edit the /lang/english.php file. //$_LANG['domainnameservers'] = "Nameservers"; //$_LANG['cartnameserversdesc'] = "If you want to use custom nameservers then enter them below. By default, new domains will use our nameservers for hosting on our network."; Please make sure to place this PHP code in a file for example. remove_nameservers_code.php within the includes/hooks directory of your WHMCS installation. <?php add_hook('ClientAreaFooterOutput', 1, function() { return <<<HTML <script> $(document).ready(function() { // Hide all domain nameserver input fields $('[name^="domainns"]').closest('.col-sm-4').hide(); }); </script> HTML; });
  2. My payment gateway does not work with different versions of WHMCS. I have found when running Whmcs version 7.9.2 and making a payment using the Attempt Capture button, I receive attempt capture error “An error occurred while communicating with the server. Please try again.” See attached image. When I look at the Invoice it has been successfully been paid and in the WHMCS logs it says it was Successful as well a successful credit to my bank (I’m running in Test mode for bank transactions) But why do I get a error as per image. When using Whmcs 7.9.2 When using WHMCS 7.6.0 All OK When using WHMCS 7.7.1 All OK When using WHMCS 7.9.2 It Does work but has error (An error occurred while communicating with the server. Please try again) stgeorge.php
  3. Hi Guys, With this script the problem is if a client has IP address that is listed in CFS how can they log into WHMCS and unblock them self? How do you guys overcome this problem.
  4. Hi Guys I need a script to do the following every day via cron. 1: Check for unpaid invoice with payment method (directdebit) 2: Pay for invoice and send out payment advice. 3: Will need to make changes in the directdebit.php module to send email to myself with the direct debit request and bank details. This is the info I was given from WHMCS staff. http://docs.whmcs.com/Hooks:System#DailyCronJob - this is the hook I would recommending using for this. http://docs.whmcs.com/API:Internal_API - This shows how to use the API internally http://docs.whmcs.com/API:Get_Invoices - filter by unpaid and then loop through the invoices until you get one with the correct payment method and due date. http://docs.whmcs.com/API:Add_Invoice_Payment - use this to add a payment to the invoice with an appropriate transaction ID.
  5. Hi I need some help on coding. The below code displays this when adding items to cart. (The reason there is $48.50 + $11.45 is that the $48.50 is a recurring sale and I have added a setup fee to make up the difference for the one time purchase to make the total price $59.95) Billing Cycle 1 Year Number of computers: 1 $48.50 + $11.45 I would lie to change it to calculate the $48.50 + $11.45 And just display 1 $59.95 Code: {if $configurableoptions} {*<p class="cartsubheading">{$LANG.orderconfigpackage}</p> <p>{$LANG.cartconfigoptionsdesc}</p>*} <div class="cartbox"> <table cellspacing="0" cellpadding="0"> {foreach key=num item=configoption from=$configurableoptions } <tr><td class="fieldlabel">{$configoption.optionname}:</td><td> {if $configoption.optiontype eq 1} <select name="configoption[{$configoption.id}]"> {foreach key=num2 item=options from=$configoption.options} <option value="{$options.id}"{if $configoption.selectedvalue eq $options.id} selected="selected"{/if}>{$options.name}</option> {/foreach} </select> {elseif $configoption.optiontype eq 2} {foreach key=num2 item=options from=$configoption.options} <label><input type="radio" name="configoption[{$configoption.id}]" value="{$options.id}"{if $configoption.selectedvalue eq $options.id} checked="checked"{/i {/foreach} {elseif $configoption.optiontype eq 3} <label><input type="checkbox" name="configoption[{$configoption.id}]" value="1"{if $configoption.selectedqty} checked{/if}> {$configoption.options.0.name}</ {elseif $configoption.optiontype eq 4} <input type="text" name="configoption[{$configoption.id}]" value="{$configoption.selectedqty}" size="5"> x {$configoption.options.0.name} {/if}
  6. Hi Guys, I am a reseller for an Antivirus program and would love to use WHMCS to do this. Now the problem I have is the pricing structure. For example. Anti-virus program is sold by different pricing structures. 1 antivirus program is $50.00 Then 3 is say $80.00 Then Between 4 and 9 user licence it would be say $25.00 per licence. Then Between 10 and 20 user licence it would be say $20.00 per licence. There is also a one year , two year and three years plan all with different pricing Please look at pricing reference. https://www.eset.com.au/store/home.php
×
×
  • 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