Subversion Repositories SmartDukaan

Rev

Rev 20654 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
17958 manish.sha 1
<?php if(count($cartskus['cartItems'])>0):?>
19287 manish.sha 2
	<div class="well text-center emptyCart hidden">
20654 amit.gupta 3
			Your Cart is Empty. Please go to <a href="<?php echo $base_url;?>categories/linkdeal/3?filtertype=exclusive">Deals Page</a>		
19287 manish.sha 4
	</div>
17804 manish.sha 5
<?php foreach($cartskus['cartItems'] as $cartitem):?>
19287 manish.sha 6
	<div class="card row" sku="<?php echo $cartitem['itemId'];?>">
7
	<div class="col-xs-12 cartdetailscard" data-id="<?php echo $cartitem['itemId'];?>" style="padding-right: 0px;" >
17804 manish.sha 8
		<div class="col-xs-3 cartdetailimage">
9
			<div class="productthumb" >
17809 manish.sha 10
	          <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($cartitem['imageUrl']);?>&h=80" />
17804 manish.sha 11
	        </div>
12
		</div>
19287 manish.sha 13
		<div class="col-xs-6 cartpricedetails">
18435 naman 14
			<div class="cart_short_description"><span style="color:#737373;"><?php echo $cartitem['title'];?><?php if(!empty($cartitem['color']) || $cartitem['color']!=''):?> &#45; <?php echo $cartitem['color']?> <?php endif;?></span><br><span>&#8377;</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> &#61; <span class="lineitemtotal" data-id="<?php echo $cartitem['itemId'];?>" style=" color:#ff0000;"> &#8377; <?php echo intval($cartitem['quantity'])*intval($cartitem['sellingPrice']);?></span></div>
17804 manish.sha 15
			<?php if(isset($cartitem['dealText']) && !empty($cartitem['dealText'])):?>
18007 manish.sha 16
				<div class="cart_short_description" style="color:#737373;"><?php echo $cartitem['dealText'];?></div>
17804 manish.sha 17
			<?php endif;?>
18007 manish.sha 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>
17804 manish.sha 19
			<?php foreach($cartitem['cartItemMessages'] as $itemmessage):?>
20
			<div class="label label-<?php echo $itemmessage['type'];?>">
21
				<?php echo $itemmessage['messageText'];?>
22
			</div>
23
			<?php endforeach;?>
24
		</div>
25
		<?php $name = explode(" ", $cartitem['title']);
26
			  $brand = $name[0];
27
		?>
19287 manish.sha 28
		<div class="col-xs-3 cartdetailsadd">
19304 manish.sha 29
				<span class="glyphicon glyphicon-trash pull-right clearItem" style="color: #B2B1B1;margin-left: 5px;" sku="<?php echo $cartitem['itemId'];?>"></span>
18007 manish.sha 30
				<div class="input-group number-spinner">
17804 manish.sha 31
					<span class="input-group-btn data-up">
20988 amit.gupta 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-category="<?php echo $cartitem['categoryName'];?>" 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>
17804 manish.sha 33
					</span>
17930 manish.sha 34
					<input type="text" class="itemquantity" value="<?php echo $cartitem['quantity'];?>" min="0" max="<?php echo $cartitem['maxQuantity'];?>" autocomplete="off" readonly>
17804 manish.sha 35
					<span class="input-group-btn data-dwn">
18435 naman 36
						<button class="btn btn-default minusqtybutton" 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="dwn" 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-minus minusqty"></span></button>
17804 manish.sha 37
					</span>
38
				</div>
39
			</div>
40
 
41
 
42
	</div>
43
 
44
	</div>
45
 
17958 manish.sha 46
<?php endforeach;?>
47
<?php else:?>
48
	<div class="well text-center">
20654 amit.gupta 49
			Your Cart is Empty. Please go to <a href="<?php echo $base_url;?>categories/linkdeal/3?filtertype=exclusive">Deals Page</a>		
17958 manish.sha 50
	</div>
51
<?php endif;?>