Subversion Repositories SmartDukaan

Rev

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

Rev 10640 Rev 10725
Line 23... Line 23...
23
  if(isset($authorized['email']) && !empty($authorized['email'])){
23
  if(isset($authorized['email']) && !empty($authorized['email'])){
24
    if(strpos($authorized['email'], 'anonymous') == false){
24
    if(strpos($authorized['email'], 'anonymous') == false){
25
        $email = $authorized['email'];
25
        $email = $authorized['email'];
26
    }
26
    }
27
  }
27
  }
28
  //print_r($product_detail->reocmmendedAccessories);
28
  //print_r($product_detail);
29
?>  
29
?>  
30
<div id="error" class="error_msg" style="display:none"></div>    
30
<div id="error" class="error_msg" style="display:none"></div>    
31
<div class="pd_name">
31
<div class="pd_name">
32
        <div><?php echo $product_detail->title;?></div>
32
        <div><?php echo $product_detail->title;?></div>
33
        <?php if(isset($product_detail->warranty) && !empty($product_detail->warranty))?>
33
        <?php if(isset($product_detail->warranty) && !empty($product_detail->warranty))?>
Line 62... Line 62...
62
          <?php } }elseif(isset($color) && !empty($color) && count($color)==1){?>
62
          <?php } }elseif(isset($color) && !empty($color) && count($color)==1){?>
63
          <p class="tcenter">Available in <?php print_r($color[0]['color']);?> color</p>
63
          <p class="tcenter">Available in <?php print_r($color[0]['color']);?> color</p>
64
          <?php }?>
64
          <?php }?>
65
        </div>
65
        </div>
66
        <div class="price-hldr">
66
        <div class="price-hldr">
67
          <?php if(isset($product_detail->items[0]->mrp)) {?>
67
          <?php if(isset($product_detail->items[0]->mrp) || isset($product_detail->items[0]->sellingPrice)){?>
68
          <span></span><span id='mrp'><?php if($product_detail->items[0]->mrp != 0) echo $product_detail->items[0]->mrp;?></span><?php } ?>
68
          <span id="rs">RS</span><?php }?>
69
          <?php if(isset($product_detail->items[0]->sellingPrice)) {?>
69
          <span id='mrp'><?php if(isset($product_detail->items[0]->mrp) && $product_detail->items[0]->mrp != 0){echo $product_detail->items[0]->mrp;} else { echo '';}?></span>
70
          <span id='sellingPrice'><?php echo $product_detail->items[0]->sellingPrice;?></span><?php } ?>
70
          <span id='sellingPrice'><?php if(isset($product_detail->items[0]->sellingPrice) && $product_detail->items[0]->sellingPrice != 0){echo $product_detail->items[0]->sellingPrice;} else { echo '';}?></span>
71
          <?php if(isset($product_detail->items[0]->discount) && !empty($product_detail->items[0]->discount)){?>
71
          <?php if(isset($product_detail->items[0]->discount) && !empty($product_detail->items[0]->discount)){?>
72
          <span id='discount'>(<?php echo $product_detail->items[0]->discount;?>% off)</span><?php } ?>
72
          <span id='discount'>(<?php echo $product_detail->items[0]->discount;?>% off)</span><?php } ?>
73
          <?php if(isset($product_detail->items[0]->minEmi)){?>
73
          <?php if(isset($product_detail->items[0]->minEmi)){?>
74
          <div id='emi'>EMI from Rs. <?php echo $product_detail->items[0]->minEmi;?> per month</div><?php } ?>
74
          <div id='emi'>EMI from Rs. <?php echo $product_detail->items[0]->minEmi;?> per month</div><?php } ?>
-
 
75
          <div id='comingSoon' style="display:<?php if(isset($product_detail->items[0]->comingSoon) && $product_detail->items[0]->comingSoon == 1){echo 'block';} else {echo 'none';};?>;color:red;">Coming Soon</div>
75
          <?php if(isset($product_detail->offerText)){?>
76
          <?php if(isset($product_detail->offerText)){?>
76
          <div class="pd-offer clearfix"><div>offer</div><div><?php echo $product_detail->offerText; ?></div></div><?php } ?>
77
          <div class="pd-offer clearfix"><div>offer</div><div><?php echo $product_detail->offerText; ?></div></div><?php } ?>
77
        </div><!--price-hldr-->
78
        </div><!--price-hldr-->
78
      </div><!--pd-price-cont-->
79
      </div><!--pd-price-cont-->
79
            <input type="text" id="email" onFocus="clearError()" value="<?php if(isset($email) && !empty($email)) {echo $email;}?>" style="display:<?php if(strcasecmp($product_detail->items[0]->buttonText, 'notify me') == 0){ echo 'block';} else{ echo 'none';}?>" placeholder="Enter email address to recieve notification">
80
            <input type="text" id="email" onFocus="clearError()" value="<?php if(isset($email) && !empty($email)) {echo $email;}?>" style="display:<?php if(strcasecmp($product_detail->items[0]->buttonText, 'notify me') == 0){ echo 'block';} else{ echo 'none';}?>" placeholder="Enter email address to recieve notification">
Line 90... Line 91...
90
          </div>
91
          </div>
91
      </div><!--check-aval-->
92
      </div><!--check-aval-->
92
      <div id="service" class="info-div">
93
      <div id="service" class="info-div">
93
        <div class="clearfix">
94
        <div class="clearfix">
94
          <?php if($product_detail->logisticsInfo->delivery_estimate)?>
95
          <?php if($product_detail->logisticsInfo->delivery_estimate)?>
95
          <span>Free Delivery by&nbsp;</span><span id="delivery"><?php echo $product_detail->logisticsInfo->delivery_estimate;?></span></div>
96
          <span>Free Delivery by&nbsp;</span><span id="delivery"><?php if(isset($product_detail->items[0]->comingSoon) && $product_detail->items[0]->comingSoon == 1){echo $product_detail->logisticsInfo->delivery_estimate.' after arrival';}else{ echo $product_detail->logisticsInfo->delivery_estimate; }?></span></div>
96
        <div class="clearfix">
97
        <div class="clearfix">
97
          <?php if(isset($product_detail->logisticsInfo->is_cod_available_for_location) && ($product_detail->logisticsInfo->is_cod_available_for_location) == 1)?>
98
          <?php if(isset($product_detail->logisticsInfo->is_cod_available_for_location) && ($product_detail->logisticsInfo->is_cod_available_for_location) == 1)?>
98
          <span>You can pay by&nbsp;</span><span id="cod">Cash on Delivery</span></div>
99
          <span>You can pay by&nbsp;</span><span id="cod">Cash on Delivery</span></div>
99
        <div id="otg" class="clearfix" style="display:<?php if(isset($product_detail->logisticsInfo->on_time_guarantee) && !empty($product_detail->logisticsInfo->on_time_guarantee)) {echo 'block';} else { echo 'none';} ?>"><span>On Time Guarantee&nbsp;</span><span id="guarantee">Available</span></div>
100
        <div id="otg" class="clearfix" style="display:<?php if(isset($product_detail->logisticsInfo->on_time_guarantee) && !empty($product_detail->logisticsInfo->on_time_guarantee)) {echo 'block';} else { echo 'none';} ?>"><span>On Time Guarantee&nbsp;</span><span id="guarantee">Available</span></div>
100
      </div><!--info-div-->
101
      </div><!--info-div-->