Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chered/4ca4db3a971e2396063b to your computer and use it in GitHub Desktop.
Save chered/4ca4db3a971e2396063b to your computer and use it in GitHub Desktop.
add bank transfer method on commerce-order-invoice-view.tpl.php using if statement
<?php if($order->data['payment_method']=='bank_transfer|commerce_payment_bank_transfer'):?>
<h4><?php print t('Bank Details'); ?></h4>
<b><?php print t('Account Name:'); ?></b> <?php print t('My Website Name'); ?><br/>
<b><?php print t('Account number:'); ?></b> <?php print t('343353535'); ?><br/>
<b><?php print t('Banking institution:'); ?></b> <?php print t('BDO'); ?><br/>
<b><?php print t('Bank code:'); ?></b> <?php print t('343434'); ?><br/>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment