Guest User

f

a guest
Dec 23rd, 2015
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.42 KB | None | 0 0
  1. <?php
  2. /**
  3. * Magento
  4. *
  5. * NOTICE OF LICENSE
  6. *
  7. * This source file is subject to the Academic Free License (AFL 3.0)
  8. * that is bundled with this package in the file LICENSE_AFL.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://opensource.org/licenses/afl-3.0.php
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@magentocommerce.com so we can send you a copy immediately.
  14. *
  15. * DISCLAIMER
  16. *
  17. * Do not edit or add to this file if you wish to upgrade Magento to newer
  18. * versions in the future. If you wish to customize Magento for your
  19. * needs please refer to http://www.magentocommerce.com for more information.
  20. *
  21. * @category design
  22. * @package base_default
  23. * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
  24. * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
  25. */
  26. ?>
  27. <?php
  28. /**
  29. * One page checkout payment methods
  30. *
  31. * @var $this Mage_Checkout_Block_Onepage_Payment_Methods
  32. */
  33. ?>
  34.  
  35. <?php
  36. $methods = $this->getMethods();
  37. $oneMethod = count($methods) <= 1;
  38. ?>
  39. <?php if (empty($methods)): ?>
  40. <dt>
  41. <?php echo $this->__('No Payment Methods') ?>
  42. </dt>
  43. <?php else:
  44. foreach ($methods as $_method):
  45. $_code = $_method->getCode();
  46.  
  47.  
  48. // if($_code == 'innobyte_payu_lite_cc'){continue;}//for mobile app
  49. // if($_code == 'cashondelivery'){continue;}//for mobile app
  50. // if($_code == 'innobyte_payu_lite_cc' or $_code == 'cashondelivery'){continue;}
  51. // if($_code!= 'innobyte_payu_lite_cc' or $_code!= 'cashondelivery'){continue;}
  52. // if($_code!="cashondelivery" || $_code!="innobyte_payu_lite_cc"){//display the methods.
  53. //if($_code == 'innobyte_payu_lite_cc' or $_code == 'cashondelivery'{continue;} //this line
  54.  
  55. /*if($_code == 'innobyte_payu_lite_cc') {
  56. continue;
  57. }
  58.  
  59. if($_code == 'cashondelivery') {
  60. continue;
  61. } */
  62.  
  63.  
  64. ?>
  65.  
  66. <<?php if(in_array($code,array('innobyte_payu_lite_cc','cashondelivery'))):?>
  67. <?php continue;?>
  68. <?php endif;?>
  69.  
  70.  
  71. <dt>
  72. <?php if(!$oneMethod): ?>
  73. <input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" title="<?php echo $this->escapeHtml($_method->getTitle()) ?>" onclick="payment.switchMethod('<?php echo $_code ?>')"<?php if($this->getSelectedMethodCode()==$_code): ?> checked="checked"<?php endif; ?> class="radio" />
  74. <?php else: ?>
  75. <span class="no-display"><input id="p_method_<?php echo $_code ?>" value="<?php echo $_code ?>" type="radio" name="payment[method]" checked="checked" class="radio" /></span>
  76. <?php $oneMethod = $_code; ?>
  77. <?php endif; ?>
  78. <label for="p_method_<?php echo $_code ?>"><?php echo $this->escapeHtml($this->getMethodTitle($_method)) ?> <?php echo $this->getMethodLabelAfterHtml($_method) ?></label>
  79. </dt>
  80. <?php if ($html = $this->getPaymentMethodFormHtml($_method)): ?>
  81. <dd>
  82. <?php echo $html; ?>
  83. </dd>
  84. <?php endif; ?>
  85. <?php endforeach;
  86. endif;
  87. ?>
  88. <?php echo $this->getChildChildHtml('additional'); ?>
  89. <script type="text/javascript">
  90. //<![CDATA[
  91. <?php echo $this->getChildChildHtml('scripts'); ?>
  92. payment.init();
  93. <?php if (is_string($oneMethod)): ?>
  94. payment.switchMethod('<?php echo $oneMethod ?>');
  95. <?php endif; ?>
  96. //]]>
  97. </script>
Add Comment
Please, Sign In to add comment