Customization - gogetssl/whmcs-addon GitHub Wiki

Custom Icon

In order to display custom product details icon on the Client Area product details page:

  1. Open the file: your_whmcs/templates/your_template/clientareaproductdetails.tpl

  2. Find the following line:
    <i class="fas fa-{if $type eq "hostingaccount" || $type == "reselleraccount"}hdd{elseif $type eq "server"}database{else}archive{/if} fastack- 1x fa-inverse"></i>

  3. Replace it with this code:
    {if $customProductDetailsIcon } {else} <i class="fas fa-{if $type eq "hostingaccount" || $type == "reselleraccount"}hdd{elseif $type eq "server"}database{else}archive{/if} fa-stack-1x fa-inverse"> {/if}

  4. And add the code on the top of the file: {if $customSSLCenterAssetsURL}

{/if}

5. File should look like below:

In the result on the product details page custom icon will be displayed:

Custom Back button

In order to replace 'Back to Client Area' button on the complete certificate configuration with 'Back to Service Details' button:

  1. Open the file:

your_whmcs/templates/your_template/configuressl-stepone.tpl

  1. Find the following lines:
<form method="post" action="clientarea.php?action=productdetails">
<input type="hidden" name="id" value="{$serviceid}" />
<p><input type="submit" value="{$LANG.invoicesbacktoclientarea}"
class="btn btn-default" /></p>
</form>
  1. Replace it with this code:
{if $customBackToServiceButton}
<a href="clientarea.php?action=productdetails&id={$serviceid}"
class="btn btn-default" role="button"> {$customBackToServiceButtonLang}
</a>
{else}
<form method="post" action="clientarea.php?action=productdetails">
<input type="hidden" name="id" value="{$serviceid}" />
<p><input type="submit"
value="{$LANG.invoicesbacktoclientarea}" class="btn btn-default" /></p>
</form>
{/if}

Renewal Invoices

Changing from Overdue in unpaid to Payment Pending

  1. Open the file:
    your_whmcs/templates/your_template/viewinvoice.tpl
  2. Find the following line:
    {if $status eq "Unpaid" && $allowchangegateway}
  3. Replace it with this code:
    {if ($status eq "Unpaid" || $status eq "Payment Pending") && $allowchangegateway}
⚠️ **GitHub.com Fallback** ⚠️