yarantoos Posted April 2, 2016 Share Posted April 2, 2016 By default , WHMCS shows only one paymentbutton . But I want to remove {$gatewaydropdown} and show all paymentbuttons per each gateway. For example if we we have four gateways , It shows four paymentbuttons . 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 2, 2016 Share Posted April 2, 2016 it's basically going to be a variation on the idea in the thread below... you'll replace {$gatewaydropdown} with a foreach loop of $gateways and show an image for each gateway. http://forum.whmcs.com/showthread.php?85483-Tutorial-How-to-replace-Payment-Gateways-%28e-g-Paypal%29-text-with-image-or-logo that said, there can be hidden fields added to the page dependent upon the choice of gateway from the dropdown (occurs with Paypal, probably other gateways too)... how you would get around that if you replace the dropdown and all the gateways are shown at the same time, i'm not sure. 0 Quote Link to comment Share on other sites More sharing options...
yarantoos Posted April 3, 2016 Author Share Posted April 3, 2016 I replaced {$gatewaydropdown} to below code : <p class="paymentmethods">{foreach key=num item=gateway from=$gateways}<label><input type="radio" name="paymentmethod" value="{$gateway.sysname}" onclick="{if $gateway.type eq "CC"}showCCForm(){else}hideCCForm(){/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} />{assign var="paylogo" value="images/`$gateway.sysname`.png"}{if file_exists($paylogo)} <img src={$paylogo} /> {else} {$gateway.name}{/if}</label><br />{/foreach}</p> But it shows default gateway only. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.