
J-B
Member-
Content Count
127 -
Joined
-
Last visited
Community Reputation
5 NeutralAbout J-B

-
Rank
Member
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
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?
-
v8 "Login As Owner" link - open in new tab/window hook
J-B replied to brian!'s topic in Share Your Best Practices & Tips
Ok sorry! Seems to be fixed in 8.1.1. -
@WHMCS John please released a hotfix for this! With us there are many Mails not import by whmcs. This is unacceptable!
-
v8 "Login As Owner" link - open in new tab/window hook
J-B replied to brian!'s topic in Share Your Best Practices & Tips
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. -
Thanks a lot @steven99
-
Payment Gateways disallow based on invoice total
J-B replied to anderbytes's topic in Developer Corner
I have do. See -
Payment Gateways disallow based on invoice total
J-B replied to anderbytes's topic in Developer Corner
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} -
Payment Gateways disallow based on invoice total
J-B replied to anderbytes's topic in Developer Corner
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}? -
Payment Gateways disallow based on invoice total
J-B replied to anderbytes's topic in Developer Corner
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> -
Payment Gateways disallow based on invoice total
J-B replied to anderbytes's topic in Developer Corner
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? -
Just where? I haven't found it yet.
-
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) {
-
Not work. It is still trying to get the api data.
-
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}
-
That's not that bug. It's a different one, something like that!