Hiding Payment Method on Checkout
To view the list of payment methods available on checkout, go to System > Settings. Under the Operations set of options, click Payments Processing. Then select the Payment Methods tab.
If you are not going to use some payment method or want to add more, click Manage Payment Methods. The list of all payment methods available in the system is displayed. To stop using the payment method, clear the check box next to the payment method name and click Save.
If you want to hide a payment method in your online store, but keep using it in Billing CP you need to customize respective layout template.
To hide a payment method on checkout:
- Find template that defines the Payment Method block layout. By default, it is
paytool.tpl
. - Open the template for editing. If the template is not available in the Layout Templates list, add it using the Add Standard Layout or Add New Layout Template buttons.
-
Replace the following part of the template code:
{foreach name=outer key=number item=payTool from=$config->payToolTypes} <option value="{$number}" {if $account->CardTypeID != ""}{if $number == $account->CardTypeID}selected{/if} {elseif $payTool->UseForAutoPayments}selected{/if type="{$payTool->type}" system="{$payTool->system}" IssueNumApplicable="{$payTool->IssueNumApplicable}" StartDateApplicable="{$payTool->StartDateApplicable}" CvvRequired="{$payTool->CvvRequired}" BankNumberStatus="{$payTool->BankNumberStatus}" AccHolderNameStatus="{$payTool->AccHolderNameStatus}" RegisteredPlaceStatus="{$payTool->RegisteredPlaceStatus}" >{$payTool->text}</option> {/foreach}
with the customized one:
{foreach name=outer key=number item=payTool from=$config->payToolTypes} <!-- Added condition checks payment system name. For example, "Check/Cash". --> {if $payTool->system != "<Payment_System_Name>"} <option value="{$number}" {if $account->CardTypeID != ""}{if $number == $account->CardTypeID}selected{/if} {elseif $payTool->UseForAutoPayments}selected{/if type="{$payTool->type}" system="{$payTool->system}" IssueNumApplicable="{$payTool->IssueNumApplicable}" StartDateApplicable="{$payTool->StartDateApplicable}" CvvRequired="{$payTool->CvvRequired}" BankNumberStatus="{$payTool->BankNumberStatus}" AccHolderNameStatus="{$payTool->AccHolderNameStatus}" RegisteredPlaceStatus="{$payTool->RegisteredPlaceStatus}" >{$payTool->text}</option> {/if} {/foreach}
- Save changes and synchronize online store.