Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

5 Neutral

About J-B

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. CORE-16265 - Correct import of replies to tickets not associated with a client Is this a fix about this Bug or is this only the Hotfix?
  2. @WHMCS John please released a hotfix for this! With us there are many Mails not import by whmcs. This is unacceptable!
  3. Many Thanks @brian! Maybe you also have an idea how to deactivate it that it is in the activity logs that you have logged in as admin as a client. That was not the case in the past. And it is irritating that you don't know whether the admin or the customer was logged in.
  4. Ok I have now found a solution. Hook: $availableGateways = $vars['availableGateways']; $stripe = 'VISA / Mastercard / American Express'; $stripe_sepa = 'SEPA Lastschrift'; $gd3 = str_replace(array ($stripe_sepa,$stripe), array ('','',), $availableGateways); return array("availableGateways" => $gd3); And then change the template viewinvoice.tpl to: {foreach $availableGateways as $gatewayModule => $gatewayName} {if $gatewayName == ''} {else} <option value="{$gatewayModule}"{if $gatewayModule == $selectedGateway} selected="selected"{/if}>{$gatewayName}</option>{/if} {/foreach}
  5. Ok, the problem was the template. In six it was: <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}" class="form-inline"> {$gatewaydropdown} </form> and in twenty-one: <form method="post" action="{$smarty.server.PHP_SELF}?id={$invoiceid}" class="form-inline"> {$tokenInput} <select name="gateway" class="custom-select" onchange="submit()"> {foreach $availableGateways as $gatewayModule => $gatewayName} <option value="{$gatewayModule}"{if $gatewayModule == $selectedGateway} selected="selected"{/if}>{$gatewayName}</option> {/foreach} </select> </form> Is it a secuity issue to need the $tokenInput? Or I can change back to {$gatewaydropdown}?
  6. I dont know, but is it a bug? The variable $gatewaydropdown has: $gatewaydropdown Origin: "Smarty object" Value "<input type="hidden" name="token" value="5af58813bf2507ab639cb9c0418f98961db8..." but not the <option>
  7. mhhh, it looks like this won't work anymore in 8.1.1 with twenty-one. function viewinvoice_gateway_removal_based_on_loggedin_status_hook($vars) { $client = Menu::context('client'); $paidinvoices = $vars['clientsstats']['numpaidinvoices']; if ($paidinvoices == 0) { $gatewaydropdown = $vars['gatewaydropdown']; $stripe = '<option value="stripe">VISA / Mastercard / American Express</option>'; $stripe_sepa = '<option value="stripe_sepa">SEPA Lastschrift</option>'; $gd2 = str_replace($stripe,'', $gatewaydropdown) ; $gd3 = str_replace(array ($stripe_sepa,$stripe), array ('','',), $gatewaydropdown); return array("gatewaydropdown" => $gd3); } } add_hook("ClientAreaPageViewInvoice", 1, "viewinvoice_gateway_removal_based_on_loggedin_status_hook"); Have you a idea @brian! why it no longer works?
  8. Just where? I haven't found it yet.
  9. Status == active seems to be if a user is active but not if a product is active. I thought that would be the easiest way. Any idea how to make the check in the function cloudxl_ClientArea(array $params) {
  10. Not work. It is still trying to get the api data.
  11. Hello, I wrote a module that gets information about an API by curl. But i have no check is a product active or not. When a customer click to this cancel services (clientarea.php?action=productdetails&id=XXX), the customer get a lot of errors. That is right, why the user dont exist anymore. But how I can check in smarty if a product is active and then get the data? Something like: { if product == active } $data {else} You canceled your product. {/if}
  12. That's not that bug. It's a different one, something like that!
  • 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