Subversion Repositories SmartDukaan

Rev

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

Rev 17579 Rev 17580
Line 9... Line 9...
9
    <div>Status</div>
9
    <div>Status</div>
10
    <div><?php echo $recharge_orderconfirmation[0]->response->rechargeStatus; ?></div>
10
    <div><?php echo $recharge_orderconfirmation[0]->response->rechargeStatus; ?></div>
11
<?php if(isset($recharge_orderconfirmation[0]->response->isOperatorAsynchronous) && $recharge_orderconfirmation[0]->response->isOperatorAsynchronous ==1):?>
11
<?php if(isset($recharge_orderconfirmation[0]->response->isOperatorAsynchronous) && $recharge_orderconfirmation[0]->response->isOperatorAsynchronous ==1):?>
12
<div id="countdown" style="margin:10px auto;display:block;"></div>
12
<div id="countdown" style="margin:10px auto;display:block;"></div>
13
<div id="rechargestatus"><?php echo $orderConfirmation->response->detailDisplayMessage;?></div>
13
<div id="rechargestatus"><?php echo $orderConfirmation->response->detailDisplayMessage;?></div>
14
<?php $rechargestatus = array("RECHARGE IN PROCESS");?>
-
 
15
<?php
-
 
16
        if(isset($privatedeals['response']['items']) && (!empty($privatedeals['response']['items']))){ 
-
 
17
		?>
-
 
18
<input type="hidden" id="email" value="<?php echo $authorized['email']?>">
-
 
19
<div class="recommended-cart-pd">
-
 
20
        <div class="head">
-
 
21
            <div>Recommended For You</div>
-
 
22
            <div id="view-more-deals" style="display:block;" onclick="showMoreDeals()">View More</div>
-
 
23
         </div>
-
 
24
        <div class="rec-cart-hldr" id="swipe_0">
-
 
25
        <div class="rec-cart-wrapper">
-
 
26
        <?php foreach ($privatedeals['response']['items'] as $product) {?>
-
 
27
	<input type="hidden" id="<?php echo $product['itemPojos'][0]['id'] ;?>-url" value="<?php echo $product['url'];?>">
-
 
28
        <div class="rec-cart-product">
-
 
29
    <?php if (in_array($recharge_orderconfirmation[0]->response->rechargeStatus, $rechargestatus)){ ?>
-
 
30
    	<img src="<?php echo $product['image_url']; ?>" alt="recomended" onerror="imgDefault()"/>
-
 
31
	<?php } else {?>
-
 
32
		<a  href="<?php echo base_url().$product['url'];?>"><img src="<?php echo $product['image_url']; ?>" alt="recomended" onerror="imgDefault()"/></a>
-
 
33
	<?php }?>
-
 
34
          <div class="pd-cart-name"><?php echo $product['title']; ?></div>
-
 
35
          <div class="pd-cart-desc"><?php echo $product['description']; ?></div>
-
 
36
          <div class="pd-cart-price"><span>Rs</span><span><?php if(isset($product['itemPojos'][0]['sellingPrice'])){echo $product['itemPojos'][0]['sellingPrice']; }?> </span><span style="color: red"><?php echo $product['itemPojos'][0]['dealPojo']['dealPrice']; ?></span></div>
-
 
37
          <?php if(!in_array($recharge_orderconfirmation[0]->response->rechargeStatus, $rechargestatus)){?>
-
 
38
	<div class="quickbuy-hldr clear" onclick="quickAddToCart(<?php echo $product['itemPojos'][0]['id'] ;?>,<?php echo $product['id']; ?>)">
-
 
39
                                <div class="quickbuy-btn btn">
-
 
40
                                        add to cart
-
 
41
                               </div>
-
 
42
                                  </div>
-
 
43
          <?php }?>
-
 
44
			        </div>
-
 
45
			        <?php } ?>
-
 
46
        </div>
-
 
47
        </div><!--rec-hldr-->
-
 
48
      </div><!--recomended-pd-->
-
 
49
<?php
-
 
50
}?>
-
 
51
 
14
 
52
	<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
15
	<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
53
  <script src="/assets/js/jquery.countdown360.js" type="text/javascript" charset="utf-8"></script>
16
  <script src="/assets/js/jquery.countdown360.js" type="text/javascript" charset="utf-8"></script>
54
 
17
 
55
  <script type="text/javascript" charset="utf-8">
18
  <script type="text/javascript" charset="utf-8">
Line 137... Line 100...
137
      <div><?php echo $recharge_orderconfirmation[0]->response->totalAmount ?></div>
100
      <div><?php echo $recharge_orderconfirmation[0]->response->totalAmount ?></div>
138
    </div>
101
    </div>
139
  </div><!--o-info-->
102
  </div><!--o-info-->
140
  
103
  
141
</div><!--o-hldr-->
104
</div><!--o-hldr-->
-
 
105
 
-
 
106
<?php $rechargestatus = array("RECHARGE IN PROCESS");?>
-
 
107
<?php
-
 
108
        if(isset($privatedeals['response']['items']) && (!empty($privatedeals['response']['items']))){ 
-
 
109
		?>
-
 
110
<input type="hidden" id="email" value="<?php echo $authorized['email']?>">
-
 
111
<div class="recommended-cart-pd">
-
 
112
        <div class="head">
-
 
113
            <div>Recommended For You</div>
-
 
114
            <div id="view-more-deals" style="display:block;" onclick="showMoreDeals()">View More</div>
-
 
115
         </div>
-
 
116
        <div class="rec-cart-hldr" id="swipe_0">
-
 
117
        <div class="rec-cart-wrapper">
-
 
118
        <?php foreach ($privatedeals['response']['items'] as $product) {?>
-
 
119
	<input type="hidden" id="<?php echo $product['itemPojos'][0]['id'] ;?>-url" value="<?php echo $product['url'];?>">
-
 
120
        <div class="rec-cart-product">
-
 
121
    <?php if (in_array($recharge_orderconfirmation[0]->response->rechargeStatus, $rechargestatus)){ ?>
-
 
122
    	<img src="<?php echo $product['image_url']; ?>" alt="recomended" onerror="imgDefault()"/>
-
 
123
	<?php } else {?>
-
 
124
		<a  href="<?php echo base_url().$product['url'];?>"><img src="<?php echo $product['image_url']; ?>" alt="recomended" onerror="imgDefault()"/></a>
-
 
125
	<?php }?>
-
 
126
          <div class="pd-cart-name"><?php echo $product['title']; ?></div>
-
 
127
          <div class="pd-cart-desc"><?php echo $product['description']; ?></div>
-
 
128
          <div class="pd-cart-price"><span>Rs</span><span><?php if(isset($product['itemPojos'][0]['sellingPrice'])){echo $product['itemPojos'][0]['sellingPrice']; }?> </span><span style="color: red"><?php echo $product['itemPojos'][0]['dealPojo']['dealPrice']; ?></span></div>
-
 
129
          <?php if(!in_array($recharge_orderconfirmation[0]->response->rechargeStatus, $rechargestatus)){?>
-
 
130
	<div class="quickbuy-hldr clear" onclick="quickAddToCart(<?php echo $product['itemPojos'][0]['id'] ;?>,<?php echo $product['id']; ?>)">
-
 
131
                                <div class="quickbuy-btn btn">
-
 
132
                                        add to cart
-
 
133
                               </div>
-
 
134
                                  </div>
-
 
135
          <?php }?>
-
 
136
			        </div>
-
 
137
			        <?php } ?>
-
 
138
        </div>
-
 
139
        </div><!--rec-hldr-->
-
 
140
      </div><!--recomended-pd-->
-
 
141
<?php
-
 
142
}?>
142
<script type="text/javascript">
143
<script type="text/javascript">
143
  var orderConfirmation = <?php echo json_encode($orderConfirmation);?>;
144
  var orderConfirmation = <?php echo json_encode($orderConfirmation);?>;
144
  if(orderConfirmation != undefined){
145
  if(orderConfirmation != undefined){
145
    var amount = parseFloat(orderConfirmation['response'].totalAmount).toFixed(2);
146
    var amount = parseFloat(orderConfirmation['response'].totalAmount).toFixed(2);
146
    var orderId = orderConfirmation['response'].rechargeDisplayId;
147
    var orderId = orderConfirmation['response'].rechargeDisplayId;