

If the clients can choose their own gateway at the invoice stage, then there will be a dropdown of available gateways. There are at least three issues to overcome.

PAYPAL LOGO PNG 2020 CODE
This hook, even with minor modifications, wouldn't work on the View Invoice page because WHMCS handles the gateways differently on that page.Īt checkout, there is an array for the hook to loop through whereas on the invoice page, there isn't as WHMCS creates the entire dropdown code in the background and there is no equivalent array for the hook to work with. #1 : WHMCS\Utility\Error\Run->handleShutdown() #0 /httpdocs/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(1, 'Cannot redeclar.', '/var/6) Whoops\Exception\ErrorException: Cannot redeclare hook_cart_gateway_logos() (previously declared in /includes/hooks/gateway_logo.php:6) in /httpdocs/includes/hooks/test.php:6 ".png" if ( file_exists ( $logo )) Īdd_hook ( 'ClientAreaPageCart', 1, 'hook_cart_gateway_logos' ) ?> Is this Hook still working ? WHMCS Version -> Version: 7.7.1 | php 7.3 the above DD image is 64px, maybe it needs to be 128px - but whatever size you choose, they need to be roughly consistent for all icons.
PAYPAL LOGO PNG 2020 DOWNLOAD
You can choose multiple icon sizes from the site and download them. for example, I just got a direct debit logo from there and added it to the output in my dev. You may want to try going to a free icon resource site like and obtain logos for direct debit, bank transfer and PayPal from there. the logos that you're using currently are not an ideal choice. The easiest thing to do is to obtain better logos, where resizing isn't really necessary in the code. It is, but i'd go along with what Christian says about resizing the images - because almost certainly, all of the original logos are going to be sized differently anyway, so if you just blindly set a width in the hook (via css or html), then some of the logos may look weird. Hi just added your hook to my installation, all is well, I was just wondering if you know if its possible to define the image sizes?
