<?php
$currencyrate = $currencyrate->toArray();
$queryproducts = $queryproducts->toArray();
$queryproductsstock = $queryproductsstock->toArray();
?>
<input type="hidden" id="maxquantity" value="<?php echo $queryproductsstock[0]['quantity'];?>">
<?php if($queryproducts[0]['discount']=='0'){?>
<div class="new-price"><?php echo $this->request->getsession()->read('currencysymbol');?><?php echo intval($queryproductsstock[0]['price']*$currencyrate[0][$this->request->getsession()->read('currency')]);?></div>
<?php } ?>
<?php if($queryproducts[0]['discount']!='0'){?>
<div class="new-price"><?php echo $this->request->getsession()->read('currencysymbol');?><?php echo intval($queryproductsstock[0]['price']*$currencyrate[0][$this->request->getsession()->read('currency')]);?></div>
<div class="old-price"><?php echo $this->request->getsession()->read('currencysymbol');?><?php echo intval($queryproducts[0]['mrp']*$currencyrate[0][$this->request->getsession()->read('currency')]);?></div>
<div class="discount"><?php echo $queryproducts[0]['discount'];?>% Off</div>
<?php
}
?>
<span>(Incl. of all taxes)</span>