Jump to content

Cancellation Button don't change


wp4all

Recommended Posts

Hi @ all,

If got a problem and I'm not able to solve the Problem.

In the clientareaproductdetails.tpl you have the cancellation Button to cancel your product .

In normal condition it shows "Request Cancellation" but after the cancellation the Button text should change to "Cancellation Requested"

Therefore is the {if}{else} function :

<div class="col-xs-{if $packagesupgrade}6{else}12{/if}">
<a href="clientarea.php?action=cancel&amp;id={$id}" class="btn btn-block btn-danger {if $pendingcancellation}disabled{/if}">
{if $pendingcancellation}{$LANG.cancellationrequested}{else}{$LANG.clientareacancelrequestbutton}{/if}</a></div>

here is the translation :

$_LANG['clientareacancelrequestbutton'] = "Request Cancellation";
$_LANG['cancellationrequested'] = "Cancellation Requested";

but no change 🙄.

The status is cancellation -> False 

image.png.3d88bcb58e727a02e3f2d2d8335ac50e.png

 

image.png.052d5a5ef7c99ecf66f82fdffd624f7f.png

 

Anny idea why it is not changing the status ?

Greetings Christian

Link to comment
Share on other sites

The Text "Cancelled to 07/01/2019" looks like you have a custom modification and no stock whmcs/template. $pendingcancellation is only set to true when the cancellation was made with the stock WHMCS Cancellation System, when you are using a custom modification or a module this maybe is not set.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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