Subversion Repositories SmartDukaan

Rev

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

<?php if(count($cartskus['cartItems'])>0):?>
        <div class="well text-center emptyCart hidden">
                        Your Cart is Empty. Please go to <a href="<?php echo $base_url;?>categories/linkdeal/3?filtertype=exclusive">Deals Page</a>             
        </div>
<?php foreach($cartskus['cartItems'] as $cartitem):?>
        <div class="card row" sku="<?php echo $cartitem['itemId'];?>">
        <div class="col-xs-12 cartdetailscard" data-id="<?php echo $cartitem['itemId'];?>" style="padding-right: 0px;" >
                <div class="col-xs-3 cartdetailimage">
                        <div class="productthumb" >
                  <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($cartitem['imageUrl']);?>&h=80" />
                </div>
                </div>
                <div class="col-xs-6 cartpricedetails">
                        <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>
                        <?php if(isset($cartitem['dealText']) && !empty($cartitem['dealText'])):?>
                                <div class="cart_short_description" style="color:#737373;"><?php echo $cartitem['dealText'];?></div>
                        <?php endif;?>
                        <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>
                        <?php foreach($cartitem['cartItemMessages'] as $itemmessage):?>
                        <div class="label label-<?php echo $itemmessage['type'];?>">
                                <?php echo $itemmessage['messageText'];?>
                        </div>
                        <?php endforeach;?>
                </div>
                <?php $name = explode(" ", $cartitem['title']);
                          $brand = $name[0];
                ?>
                <div class="col-xs-3 cartdetailsadd">
                                <span class="glyphicon glyphicon-trash pull-right clearItem" style="color: #B2B1B1;margin-left: 5px;" sku="<?php echo $cartitem['itemId'];?>"></span>
                                <div class="input-group number-spinner">
                                        <span class="input-group-btn data-up">
                                                <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>
                                        </span>
                                        <input type="text" class="itemquantity" value="<?php echo $cartitem['quantity'];?>" min="0" max="<?php echo $cartitem['maxQuantity'];?>" autocomplete="off" readonly>
                                        <span class="input-group-btn data-dwn">
                                                <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>
                                        </span>
                                </div>
                        </div>
                        
                
        </div>

        </div>
        
<?php endforeach;?>
<?php else:?>
        <div class="well text-center">
                        Your Cart is Empty. Please go to <a href="<?php echo $base_url;?>categories/linkdeal/3?filtertype=exclusive">Deals Page</a>             
        </div>
<?php endif;?>