WHMCS Request Cancellation Button

Having problems with the panel? Have questions? Post here!
Post Reply
smurray
Posts: 2
Joined: Mon Mar 28, 2022 12:58 pm

WHMCS Request Cancellation Button

Post by smurray »

We do not have a "Request Cancellation" button for our clients in WHMCS. We are on version 2.555 of UGCC, 1.5 of the UGCC/WHMCS Module, 8.1 of WHMCS. Cancellation is enabled in WHMCS for clients and works with other services, just isn't there for UGCC clients. Any suggestions on what to check?
Masher
Site Admin
Posts: 3612
Joined: Thu Apr 20, 2006 2:54 pm
Location: America's Heartland
Contact:

Re: WHMCS Request Cancellation Button

Post by Masher »

You will need to edit the template.

modules\servers\ugcc\templates\overview.tpl

At the very bottom modify

Code: Select all

<div class="row">
            <div class="col-sm-8">
                <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1" class="btn btn-primary btn-block">Game Control Panel Login</a>
            </div>
    {if $packagesupgrade}
        <div class="col-sm-4">
            <a href="upgrade.php?type=package&amp;id={$id}" class="btn btn-success btn-block">
                {$LANG.upgrade}
            </a>
        </div>
    {/if}
</div>
To

Code: Select all

<div class="row">
            <div class="col-sm-8">
                <a href="clientarea.php?action=productdetails&id={$serviceid}&dosinglesignon=1" class="btn btn-primary btn-block">Game Control Panel Login</a>
            </div>
    {if $packagesupgrade}
        <div class="col-sm-4">
            <a href="upgrade.php?type=package&amp;id={$id}" class="btn btn-success btn-block">
                {$LANG.upgrade}
            </a>
        </div>
    {/if}
    <div class="col-sm-4">
        <a href="clientarea.php?action=cancel&amp;id={$id}" class="btn btn-danger btn-block{if $pendingcancellation}disabled{/if}">
            {if $pendingcancellation}
                {$LANG.cancellationrequested}
            {else}
                {$LANG.cancel}
            {/if}
        </a>
    </div>
</div>
Masher
-----------
Please do not PM me unless asked to! We are a small company. If you have an issue or question it would be best to post it in the forums where it can help others in the future.

NEW Join our Discord!
smurray
Posts: 2
Joined: Mon Mar 28, 2022 12:58 pm

Re: WHMCS Request Cancellation Button

Post by smurray »

This worked very well. Thank you!
Post Reply