Advertisement
Guest User

Price.PHTML

a guest
Feb 10th, 2013
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 24.78 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template for displaying product price in different places (products grid, product view page etc)
  4.  *
  5.  * @see Mage_Catalog_Block_Product_Abstract
  6.  */
  7. ?>
  8. <?php
  9.     $_coreHelper = $this->helper('core');
  10.     $_weeeHelper = $this->helper('weee');
  11.     $_taxHelper  = $this->helper('tax');
  12.     /* @var $_coreHelper Mage_Core_Helper_Data */
  13.     /* @var $_weeeHelper Mage_Weee_Helper_Data */
  14.     /* @var $_taxHelper Mage_Tax_Helper_Data */
  15.  
  16.     $_product = $this->getProduct();
  17.     $_storeId = $_product->getStoreId();
  18.     $_id = $_product->getId();
  19.     $_weeeSeparator = '';
  20.     $_simplePricesTax = ($_taxHelper->displayPriceIncludingTax() || $_taxHelper->displayBothPrices());
  21.     $_minimalPriceValue = $_product->getMinimalPrice();
  22.     $_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
  23. ?>
  24.  
  25. <?php if (!$_product->isGrouped()): ?>
  26.     <?php $_weeeTaxAmount = $_weeeHelper->getAmountForDisplay($_product); ?>
  27.     <?php if ($_weeeHelper->typeOfDisplay($_product, array(Mage_Weee_Model_Tax::DISPLAY_INCL_DESCR, Mage_Weee_Model_Tax::DISPLAY_EXCL_DESCR_INCL, 4))): ?>
  28.         <?php $_weeeTaxAmount = $_weeeHelper->getAmount($_product); ?>
  29.         <?php $_weeeTaxAttributes = $_weeeHelper->getProductWeeeAttributesForDisplay($_product); ?>
  30.     <?php endif; ?>
  31.     <?php $_weeeTaxAmountInclTaxes = $_weeeTaxAmount; ?>
  32.     <?php if ($_weeeHelper->isTaxable() && !$_taxHelper->priceIncludesTax($_storeId)): ?>
  33.         <?php $_attributes = $_weeeHelper->getProductWeeeAttributesForRenderer($_product, null, null, null, true); ?>
  34.         <?php $_weeeTaxAmountInclTaxes = $_weeeHelper->getAmountInclTaxes($_attributes); ?>
  35.     <?php endif; ?>
  36.  
  37.     <div class="price-box">
  38.     <?php $_price = $_taxHelper->getPrice($_product, $_product->getPrice()) ?>
  39.     <?php $_regularPrice = $_taxHelper->getPrice($_product, $_product->getPrice(), $_simplePricesTax) ?>
  40.     <?php $_finalPrice = $_taxHelper->getPrice($_product, $_product->getFinalPrice()) ?>
  41.     <?php $_finalPriceInclTax = $_taxHelper->getPrice($_product, $_product->getFinalPrice(), true) ?>
  42.     <?php $_weeeDisplayType = $_weeeHelper->getPriceDisplayType(); ?>
  43.     <?php if ($_finalPrice >= $_price): ?>
  44.         <?php if ($_taxHelper->displayBothPrices()): ?>
  45.             <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
  46.                 <span class="price-excluding-tax">
  47.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  48.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  49.                         <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
  50.                     </span>
  51.                 </span>
  52.                 <span class="price-including-tax">
  53.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  54.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  55.                         <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  56.                     </span>
  57.                 </span>
  58.             <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
  59.                 <span class="price-excluding-tax">
  60.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  61.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  62.                         <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
  63.                     </span>
  64.                 </span>
  65.                 <span class="price-including-tax">
  66.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  67.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  68.                         <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  69.                     </span>
  70.                     <span class="weee">(
  71.                         <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  72.                             <?php echo $_weeeSeparator; ?>
  73.                             <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
  74.                             <?php $_weeeSeparator = ' + '; ?>
  75.                         <?php endforeach; ?>
  76.                         )</span>
  77.                 </span>
  78.             <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
  79.                 <span class="price-excluding-tax">
  80.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  81.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  82.                         <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, false) ?>
  83.                     </span>
  84.                 </span>
  85.                 <span class="price-including-tax">
  86.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  87.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  88.                         <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  89.                     </span>
  90.                     <span class="weee">(
  91.                         <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  92.                             <?php echo $_weeeSeparator; ?>
  93.                             <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
  94.                             <?php $_weeeSeparator = ' + '; ?>
  95.                         <?php endforeach; ?>
  96.                         )</span>
  97.                 </span>
  98.             <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
  99.                 <span class="price-excluding-tax">
  100.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  101.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  102.                         <?php echo $_coreHelper->currency($_price, true, false) ?>
  103.                     </span>
  104.                 </span>
  105.                 <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  106.                     <span class="weee">
  107.                         <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
  108.                     </span>
  109.                 <?php endforeach; ?>
  110.                 <span class="price-including-tax">
  111.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  112.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  113.                         <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  114.                     </span>
  115.                 </span>
  116.             <?php else: ?>
  117.                 <span class="price-excluding-tax">
  118.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  119.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  120.                         <?php if ($_finalPrice == $_price): ?>
  121.                             <?php echo $_coreHelper->currency($_price, true, false) ?>
  122.                         <?php else: ?>
  123.                             <?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
  124.                         <?php endif; ?>
  125.                     </span>
  126.                 </span>
  127.                 <span class="price-including-tax">
  128.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  129.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  130.                         <?php echo $_coreHelper->currency($_finalPriceInclTax, true, false) ?>
  131.                     </span>
  132.                 </span>
  133.             <?php endif; ?>
  134.         <?php else: ?>
  135.             <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
  136.                 <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  137.                     <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
  138.                 </span>
  139.             <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
  140.                 <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  141.                     <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
  142.                 </span>
  143.                 <span class="weee">(
  144.                     <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  145.                         <?php echo $_weeeSeparator; ?>
  146.                         <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
  147.                         <?php $_weeeSeparator = ' + '; ?>
  148.                     <?php endforeach; ?>
  149.                     )</span>
  150.             <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
  151.                 <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  152.                     <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
  153.                 </span>
  154.                 <span class="weee">(
  155.                     <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  156.                         <?php echo $_weeeSeparator; ?>
  157.                         <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
  158.                         <?php $_weeeSeparator = ' + '; ?>
  159.                     <?php endforeach; ?>
  160.                     )</span>
  161.             <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
  162.                 <span class="regular-price"><?php echo $_coreHelper->currency($_price,true,true) ?></span><br />
  163.                 <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  164.                     <span class="weee">
  165.                         <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
  166.                     </span>
  167.                 <?php endforeach; ?>
  168.                 <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  169.                     <?php echo $_coreHelper->currency($_price + $_weeeTaxAmount, true, true) ?>
  170.                 </span>
  171.             <?php else: ?>
  172.                 <span class="regular-price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  173.                     <?php if ($_finalPrice == $_price): ?>
  174.                         <?php echo $_coreHelper->currency($_price, true, true) ?>
  175.                     <?php else: ?>
  176.                         <?php echo $_coreHelper->currency($_finalPrice, true, true) ?>
  177.                     <?php endif; ?>
  178.                 </span>
  179.             <?php endif; ?>
  180.         <?php endif; ?>
  181.     <?php else: /* if ($_finalPrice == $_price): */ ?>
  182.         <?php $_originalWeeeTaxAmount = $_weeeHelper->getOriginalAmount($_product); ?>
  183.  
  184.         <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
  185.             <p class="old-price">
  186.                 <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
  187.                 <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  188.                     <?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
  189.                 </span>
  190.             </p>
  191.  
  192.             <?php if ($_taxHelper->displayBothPrices()): ?>
  193.                 <p class="special-price">
  194.                     <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  195.                     <span class="price-excluding-tax">
  196.                         <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  197.                         <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  198.                             <?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
  199.                         </span>
  200.                     </span>
  201.                 <span class="price-including-tax">
  202.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  203.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  204.                         <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  205.                     </span>
  206.                 </span>
  207.                 </p>
  208.             <?php else: ?>
  209.             <p class="special-price">
  210.                 <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  211.                 <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  212.                     <?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmountInclTaxes, true, false) ?>
  213.                 </span>
  214.             </p>
  215.             <?php endif; ?>
  216.  
  217.         <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
  218.             <p class="old-price">
  219.                 <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
  220.                 <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  221.                     <?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
  222.                 </span>
  223.             </p>
  224.  
  225.             <p class="special-price">
  226.                 <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  227.                 <span class="price-excluding-tax">
  228.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  229.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  230.                         <?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
  231.                     </span>
  232.                 </span>
  233.             <span class="weee">(
  234.                 <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  235.                     <?php echo $_weeeSeparator; ?>
  236.                     <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
  237.                     <?php $_weeeSeparator = ' + '; ?>
  238.                 <?php endforeach; ?>
  239.                 )</span>
  240.             <span class="price-including-tax">
  241.                 <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  242.                 <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  243.                     <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  244.                 </span>
  245.             </span>
  246.             </p>
  247.         <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 4)): // incl. + weee ?>
  248.             <p class="old-price">
  249.                 <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
  250.                 <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  251.                     <?php echo $_coreHelper->currency($_regularPrice + $_originalWeeeTaxAmount, true, false) ?>
  252.                 </span>
  253.             </p>
  254.  
  255.             <p class="special-price">
  256.                 <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  257.                 <span class="price-excluding-tax">
  258.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  259.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  260.                         <?php echo $_coreHelper->currency($_finalPrice + $_weeeTaxAmount, true, false) ?>
  261.                     </span>
  262.                 </span>
  263.             <span class="weee">(
  264.                 <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  265.                     <?php echo $_weeeSeparator; ?>
  266.                     <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount() + $_weeeTaxAttribute->getTaxAmount(), true, true); ?>
  267.                     <?php $_weeeSeparator = ' + '; ?>
  268.                 <?php endforeach; ?>
  269.                 )</span>
  270.             <span class="price-including-tax">
  271.                 <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  272.                 <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  273.                     <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  274.                 </span>
  275.             </span>
  276.             </p>
  277.         <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 2)): // excl. + weee + final ?>
  278.             <p class="old-price">
  279.                 <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
  280.                 <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  281.                     <?php echo $_coreHelper->currency($_regularPrice, true, false) ?>
  282.                 </span>
  283.             </p>
  284.  
  285.             <p class="special-price">
  286.                 <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  287.                 <span class="price-excluding-tax">
  288.                     <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  289.                     <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  290.                         <?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
  291.                     </span>
  292.                 </span>
  293.                 <?php foreach ($_weeeTaxAttributes as $_weeeTaxAttribute): ?>
  294.                     <span class="weee">
  295.                         <?php echo $_weeeTaxAttribute->getName(); ?>: <?php echo $_coreHelper->currency($_weeeTaxAttribute->getAmount(), true, true); ?>
  296.                     </span>
  297.                 <?php endforeach; ?>
  298.                 <span class="price-including-tax">
  299.                     <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  300.                     <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  301.                         <?php echo $_coreHelper->currency($_finalPriceInclTax + $_weeeTaxAmountInclTaxes, true, false) ?>
  302.                     </span>
  303.                 </span>
  304.             </p>
  305.         <?php else: // excl. ?>
  306.             <p class="old-price">
  307.                 <span class="price-label"><?php echo $this->__('Regular Price:') ?></span>
  308.                 <span class="price" id="old-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  309.                     <?php echo $_coreHelper->currency($_regularPrice, true, false) ?>
  310.                 </span>
  311.             </p>
  312.  
  313.             <?php if ($_taxHelper->displayBothPrices()): ?>
  314.                 <p class="special-price">
  315.                     <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  316.                     <span class="price-excluding-tax">
  317.                         <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  318.                         <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  319.                             <?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
  320.                         </span>
  321.                     </span>
  322.                     <span class="price-including-tax">
  323.                         <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  324.                         <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  325.                             <?php echo $_coreHelper->currency($_finalPriceInclTax, true, false) ?>
  326.                         </span>
  327.                     </span>
  328.                 </p>
  329.             <?php else: ?>
  330.             <p class="special-price">
  331.                 <span class="price-label"><?php echo $this->__('Special Price:') ?></span>
  332.                 <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  333.                     <?php echo $_coreHelper->currency($_finalPrice, true, false) ?>
  334.                 </span>
  335.             </p>
  336.             <?php endif; ?>
  337.         <?php endif; ?>
  338.  
  339.     <?php endif; /* if ($_finalPrice == $_price): */ ?>
  340.  
  341.     <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_product->getFinalPrice()): ?>
  342.  
  343.         <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
  344.         <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
  345.             <?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
  346.         <?php endif; ?>
  347.  
  348.         <?php if ($this->getUseLinkForAsLowAs()):?>
  349.         <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
  350.         <?php else:?>
  351.         <span class="minimal-price-link">
  352.         <?php endif?>
  353.             <span class="label"><?php echo $this->__('As low as:') ?></span>
  354.             <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  355.                 <?php echo $_coreHelper->currency($_minimalPriceDisplayValue, true, false) ?>
  356.             </span>
  357.         <?php if ($this->getUseLinkForAsLowAs()):?>
  358.         </a>
  359.         <?php else:?>
  360.         </span>
  361.         <?php endif?>
  362.     <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice && $_minimalPrice < $_finalPrice): */ ?>
  363.     </div>
  364.  
  365. <?php else: /* if (!$_product->isGrouped()): */ ?>
  366.     <?php
  367.     $_exclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue);
  368.     $_inclTax = $_taxHelper->getPrice($_product, $_minimalPriceValue, true);
  369.     ?>
  370.     <?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue): ?>
  371.         <div class="price-box">
  372.             <p class="minimal-price">
  373.                 <span class="price-label"><?php echo $this->__('Starting at:') ?></span>
  374.                 <?php if ($_taxHelper->displayBothPrices()): ?>
  375.                     <span class="price-excluding-tax">
  376.                         <span class="label"><?php echo $this->helper('tax')->__('Excl. Tax:') ?></span>
  377.                         <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  378.                             <?php echo $_coreHelper->currency($_exclTax, true, false) ?>
  379.                         </span>
  380.                     </span>
  381.                     <span class="price-including-tax">
  382.                         <span class="label"><?php echo $this->helper('tax')->__('Incl. Tax:') ?></span>
  383.                         <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  384.                             <?php echo $_coreHelper->currency($_inclTax, true, false) ?>
  385.                         </span>
  386.                     </span>
  387.                 <?php else: ?>
  388.                     <?php
  389.                     $_showPrice = $_inclTax;
  390.                     if (!$_taxHelper->displayPriceIncludingTax()) {
  391.                         $_showPrice = $_exclTax;
  392.                     }
  393.                     ?>
  394.                 <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
  395.                     <?php echo $_coreHelper->currency($_showPrice, true, false) ?>
  396.                 </span>
  397.                 <?php endif; ?>
  398.             </p>
  399.         </div>
  400.     <?php endif; /* if ($this->getDisplayMinimalPrice() && $_minimalPrice): */ ?>
  401. <?php endif; /* if (!$_product->isGrouped()): */ ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement