Subversion Repositories SmartDukaan

Rev

Rev 12694 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12694 Rev 12734
Line 65... Line 65...
65
      </div><!--gd-total-->
65
      </div><!--gd-total-->
66
      <div class="hldr-sub">
66
      <div class="hldr-sub">
67
        <div class="card">Select Payment Method</div>
67
        <div class="card">Select Payment Method</div>
68
        <div id="error" class="error_msg" style="display:<?php if(isset($codCaptcha) && $codCaptcha == 1 ){echo 'block';} else { echo 'none'; }?>"><?php if(isset($codCaptcha) && $codCaptcha ==1){echo 'Invalid Captcha';}?></div>
68
        <div id="error" class="error_msg" style="display:<?php if(isset($codCaptcha) && $codCaptcha == 1 ){echo 'block';} else { echo 'none'; }?>"><?php if(isset($codCaptcha) && $codCaptcha ==1){echo 'Invalid Captcha';}?></div>
69
        <?php if(($amount != 0) && !isset($payments->results->isTotalAmountZero)) {
69
        <?php if(($amount != 0) && !isset($payments->results->isTotalAmountZero)) {
-
 
70
          // remove all payment options other than cod
-
 
71
 
-
 
72
          foreach ($payments->options as $key => $value) {
-
 
73
            if($value->type != 'cod' && $value->type != 'zero'){
-
 
74
              unset($payments->options[$key]);
-
 
75
            }
-
 
76
          }
70
          foreach($payments->options as $payment){
77
          foreach($payments->options as $payment){
71
         if($payment->label == 'CREDIT CARDS'){
78
         if($payment->label == 'CREDIT CARDS'){
72
          if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod == 0)){
79
          if((!isset($codCaptcha) && $codCaptcha !=1) || (!isset($cod) || $cod == 0)){
73
            $defaultPayment = $payment->type;
80
            $defaultPayment = $payment->type;
74
          }?>
81
          }?>