|
This is very easy by adding this function to /app/code/core/Mage/Checkout/Block/Cart/Sidebar.php or using an overload
public function getDiscount() { $discount = $this->getTotals(); if (isset($discount['discount'])) { $d = explode(',',$discount['discount']); $price = $d[2]; return $price; } return 0; }
and in the sidebar.phtml something like
<strong>Gesamt:</strong> <?php echo Mage::helper('core')->currency($this->getSubtotal()) ?><br /> <strong>Rabatt:</strong> <?php echo Mage::helper('core')->currency($this->getDiscount()) ?><br /> <strong>Summe:</strong> <?php echo Mage::helper('core')->currency($this->getSubtotal()+$this->getDiscount()) ?>
georg
|