| Line 1... |
Line 1... |
| 1 |
<?php if(count($cartskus['cartItems'])>0):?>
|
1 |
<?php if(count($cartskus['cartItems'])>0):?>
|
| - |
|
2 |
<div class="well text-center emptyCart hidden">
|
| - |
|
3 |
Your Cart is Empty. Please go to <a href="<?php echo $base_url;?>category/6">Deals Page</a>
|
| - |
|
4 |
</div>
|
| 2 |
<?php foreach($cartskus['cartItems'] as $cartitem):?>
|
5 |
<?php foreach($cartskus['cartItems'] as $cartitem):?>
|
| 3 |
<div class="card row">
|
6 |
<div class="card row" sku="<?php echo $cartitem['itemId'];?>">
|
| 4 |
<div class="col-xs-12 cartdetailscard" data-id="<?php echo $cartitem['itemId'];?>">
|
7 |
<div class="col-xs-12 cartdetailscard" data-id="<?php echo $cartitem['itemId'];?>" style="padding-right: 0px;" >
|
| 5 |
<div class="col-xs-3 cartdetailimage">
|
8 |
<div class="col-xs-3 cartdetailimage">
|
| 6 |
<div class="productthumb" >
|
9 |
<div class="productthumb" >
|
| 7 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($cartitem['imageUrl']);?>&h=80" />
|
10 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($cartitem['imageUrl']);?>&h=80" />
|
| 8 |
</div>
|
11 |
</div>
|
| 9 |
</div>
|
12 |
</div>
|
| 10 |
<div class="col-xs-7 cartpricedetails">
|
13 |
<div class="col-xs-6 cartpricedetails">
|
| 11 |
<div class="cart_short_description"><span style="color:#737373;"><?php echo $cartitem['title'];?><?php if(!empty($cartitem['color']) || $cartitem['color']!=''):?> - <?php echo $cartitem['color']?> <?php endif;?></span><br><span>₹</span> <span class="lineitemprice" data-id="<?php echo $cartitem['itemId'];?>"><?php echo $cartitem['sellingPrice'];?></span> X <span class="lineitemqty" data-id="<?php echo $cartitem['itemId'];?>"><?php echo $cartitem['quantity'];?></span> = <span class="lineitemtotal" data-id="<?php echo $cartitem['itemId'];?>" style=" color:#ff0000;"> ₹ <?php echo intval($cartitem['quantity'])*intval($cartitem['sellingPrice']);?></span></div>
|
14 |
<div class="cart_short_description"><span style="color:#737373;"><?php echo $cartitem['title'];?><?php if(!empty($cartitem['color']) || $cartitem['color']!=''):?> - <?php echo $cartitem['color']?> <?php endif;?></span><br><span>₹</span> <span class="lineitemprice" data-id="<?php echo $cartitem['itemId'];?>"><?php echo $cartitem['sellingPrice'];?></span> X <span class="lineitemqty" data-id="<?php echo $cartitem['itemId'];?>"><?php echo $cartitem['quantity'];?></span> = <span class="lineitemtotal" data-id="<?php echo $cartitem['itemId'];?>" style=" color:#ff0000;"> ₹ <?php echo intval($cartitem['quantity'])*intval($cartitem['sellingPrice']);?></span></div>
|
| 12 |
<?php if(isset($cartitem['dealText']) && !empty($cartitem['dealText'])):?>
|
15 |
<?php if(isset($cartitem['dealText']) && !empty($cartitem['dealText'])):?>
|
| 13 |
<div class="cart_short_description" style="color:#737373;"><?php echo $cartitem['dealText'];?></div>
|
16 |
<div class="cart_short_description" style="color:#737373;"><?php echo $cartitem['dealText'];?></div>
|
| 14 |
<?php endif;?>
|
17 |
<?php endif;?>
|
| 15 |
<div class="cart_short_description<?php if(isset($cartitem['packQuantity']) && $cartitem['packQuantity']==1){?> hidden <?php }?>"><span style="color:#737373;">Total: </span><span class="packQuantity" data-id="<?php echo $cartitem['itemId'];?>" data-pack="<?php echo intval($cartitem['packQuantity']);?>" style="color:#ff0000"><?php echo intval($cartitem['quantity'])*intval($cartitem['packQuantity']);?></span><span style="color:#ff0000"> pcs</span></div>
|
18 |
<div class="cart_short_description<?php if(isset($cartitem['packQuantity']) && $cartitem['packQuantity']==1){?> hidden <?php }?>"><span style="color:#737373;">Total: </span><span class="packQuantity" data-id="<?php echo $cartitem['itemId'];?>" data-pack="<?php echo intval($cartitem['packQuantity']);?>" style="color:#ff0000"><?php echo intval($cartitem['quantity'])*intval($cartitem['packQuantity']);?></span><span style="color:#ff0000"> pcs</span></div>
|
| Line 20... |
Line 23... |
| 20 |
<?php endforeach;?>
|
23 |
<?php endforeach;?>
|
| 21 |
</div>
|
24 |
</div>
|
| 22 |
<?php $name = explode(" ", $cartitem['title']);
|
25 |
<?php $name = explode(" ", $cartitem['title']);
|
| 23 |
$brand = $name[0];
|
26 |
$brand = $name[0];
|
| 24 |
?>
|
27 |
?>
|
| 25 |
<div class="col-xs-2 cartdetailsadd">
|
28 |
<div class="col-xs-3 cartdetailsadd">
|
| - |
|
29 |
<span class="glyphicon glyphicon-trash pull-right clearItem" style="color: #d9534f;margin-left: 5px;" sku="<?php echo $cartitem['itemId'];?>"></span>
|
| 26 |
<div class="input-group number-spinner">
|
30 |
<div class="input-group number-spinner">
|
| 27 |
<span class="input-group-btn data-up">
|
31 |
<span class="input-group-btn data-up">
|
| 28 |
<button class="btn btn-default plusqtybutton" data-minquantity="<?php echo $cartitem['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($cartitem['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $cartitem['quantityStep'];?>" data-id="<?php echo $cartitem['itemId'];?>" data-price="<?php echo $cartitem['sellingPrice'];?>" data-dir="up" data-name="<?php echo $cartitem['title'];?>" data-brand="<?php echo $brand;?>" data-estimate="<?php echo $cartitem['estimate'];?>" data-identifier="<?php echo $cartitem['catalogItemId']; ?>" <?php if(isset($disablePage) && $disablePage): ?> disabled="disabled"<?php endif;?>><span class="glyphicon glyphicon-plus plusqty"></span></button>
|
32 |
<button class="btn btn-default plusqtybutton" data-minquantity="<?php echo $cartitem['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($cartitem['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $cartitem['quantityStep'];?>" data-id="<?php echo $cartitem['itemId'];?>" data-price="<?php echo $cartitem['sellingPrice'];?>" data-dir="up" data-name="<?php echo $cartitem['title'];?>" data-brand="<?php echo $brand;?>" data-estimate="<?php echo $cartitem['estimate'];?>" data-identifier="<?php echo $cartitem['catalogItemId']; ?>" <?php if(isset($disablePage) && $disablePage): ?> disabled="disabled"<?php endif;?>><span class="glyphicon glyphicon-plus plusqty"></span></button>
|
| 29 |
</span>
|
33 |
</span>
|
| 30 |
<input type="text" class="itemquantity" value="<?php echo $cartitem['quantity'];?>" min="0" max="<?php echo $cartitem['maxQuantity'];?>" autocomplete="off" readonly>
|
34 |
<input type="text" class="itemquantity" value="<?php echo $cartitem['quantity'];?>" min="0" max="<?php echo $cartitem['maxQuantity'];?>" autocomplete="off" readonly>
|