5
März
<?php
$_product = Mage::getSingleton(‚catalog/product‘)->load($_item->getProductId());
$_productPrice = $this->helper(‚checkout‘)->getPriceInclTax($_item);
$_productAmount = $_product->getResource()->getAttribute(‚base_price_amount‘)->getFrontend()->getValue($_product);
$_productBaseAmount = $_product->getResource()->getAttribute(‚base_price_base_amount‘)->getFrontend()->getValue($_product);
$_productBaseUnit = $_product->getResource()->getAttribute(‚base_price_base_unit‘)->getFrontend()->getValue($_product);
$_productBaseprice = ($_productPrice/$_productAmount)*$_productBaseAmount;
?>
<?php if ($_productBaseprice && $_productBaseprice > 0): ?>
<span>Entspricht <?php echo number_format($_productBaseprice,2, ‚,‘, ‚.‘) ?> € pro <?php echo $_productBaseAmount; ?> <?php echo $this->__($_productBaseUnit); ?></span>
<?php endif; ?>
$_product = Mage::getSingleton(‚catalog/product‘)->load($_item->getProductId());
$_productPrice = $this->helper(‚checkout‘)->getPriceInclTax($_item);
$_productAmount = $_product->getResource()->getAttribute(‚base_price_amount‘)->getFrontend()->getValue($_product);
$_productBaseAmount = $_product->getResource()->getAttribute(‚base_price_base_amount‘)->getFrontend()->getValue($_product);
$_productBaseUnit = $_product->getResource()->getAttribute(‚base_price_base_unit‘)->getFrontend()->getValue($_product);
$_productBaseprice = ($_productPrice/$_productAmount)*$_productBaseAmount;
?>
<?php if ($_productBaseprice && $_productBaseprice > 0): ?>
<span>Entspricht <?php echo number_format($_productBaseprice,2, ‚,‘, ‚.‘) ?> € pro <?php echo $_productBaseAmount; ?> <?php echo $this->__($_productBaseUnit); ?></span>
<?php endif; ?>