Created
March 20, 2017 13:06
-
-
Save peterjaap/2956c8dd2b219b931c5b53a8731678c7 to your computer and use it in GitHub Desktop.
Bundle price.phtml without weee stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE_AFL.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php | |
* If you did not receive a copy of the license and are unable to | |
* obtain it through the world-wide-web, please send an email | |
* to license@magentocommerce.com so we can send you a copy immediately. | |
* | |
* DISCLAIMER | |
* | |
* Do not edit or add to this file if you wish to upgrade Magento to newer | |
* versions in the future. If you wish to customize Magento for your | |
* needs please refer to http://www.magentocommerce.com for more information. | |
* | |
* @category design | |
* @package base_default | |
* @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com) | |
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) | |
*/ | |
?> | |
<?php | |
/** | |
* @var $this Mage_Bundle_Block_Catalog_Product_Price | |
*/ | |
/** | |
* @var $_coreHelper Mage_Core_Helper_Data | |
* @var $_taxHelper Mage_Tax_Helper_Data | |
*/ | |
$_coreHelper = $this->helper('core'); | |
$_taxHelper = $this->helper('tax'); | |
/** | |
* @var $_product Mage_Catalog_Model_Product | |
* @var $_priceModel Mage_Bundle_Model_Product_Price | |
*/ | |
$_product = $this->getProduct(); | |
$_priceModel = $_product->getPriceModel(); | |
list($_minimalPriceTax, $_maximalPriceTax) = $_priceModel->getTotalPrices($_product, null, null, false); | |
list($_minimalPriceInclTax, $_maximalPriceInclTax) = $_priceModel->getTotalPrices($_product, null, true, false); | |
?> | |
<div class="price-box bundle"> | |
<?php if ($_product->getPriceView()): ?> | |
<p class="minimal-price"> | |
<span class="price-label"><?php echo $this->__('As low as') ?>:</span> | |
<?php if ($this->displayBothPrices()): ?> | |
<span class="price-excluding-tax"> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceTax) ?></span> | |
<span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span> | |
</span> | |
<span class="price-including-tax"> | |
<?php echo $_coreHelper->currency($_minimalPriceInclTax) ?> | |
<span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span> | |
</span> | |
<?php else: ?> | |
<?php if ($_taxHelper->displayPriceIncludingTax()): ?> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceInclTax) ?></span> | |
<?php else: ?> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceTax) ?></span> | |
<?php endif; ?> | |
<?php endif; ?> | |
</p> | |
<?php else: ?> | |
<?php if ($_minimalPriceTax <> $_maximalPriceTax): ?> | |
<p class="price-from"> | |
<span class="price-label"><?php echo $this->__('From') ?>:</span> | |
<?php if ($this->displayBothPrices()): ?> | |
<span class="price-excluding-tax"> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceTax) ?></span> | |
<span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span> | |
</span> | |
<span class="price-including-tax"> | |
<?php echo $_coreHelper->currency($_minimalPriceInclTax) ?> | |
<span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span> | |
</span> | |
<?php else: ?> | |
<?php if ($_taxHelper->displayPriceIncludingTax()) : ?> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceInclTax) ?></span> | |
<?php else: ?> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceTax) ?></span> | |
<?php endif; ?> | |
<?php endif; ?> | |
</p> | |
<p class="price-to"> | |
<span class="price-label"><?php echo $this->__('To') ?>:</span> | |
<?php if ($this->displayBothPrices()): ?> | |
<span class="price-excluding-tax"> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_maximalPriceTax) ?></span> | |
<span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span> | |
</span> | |
<span class="price-including-tax"> | |
<?php echo $_coreHelper->currency($_maximalPriceInclTax) ?> | |
<span class="label"><?php echo $_taxHelper->__('Incl. Tax') ?></span> | |
</span> | |
<?php else: ?> | |
<?php if ($_taxHelper->displayPriceIncludingTax()) : ?> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_maximalPriceInclTax) ?></span> | |
<?php else: ?> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_maximalPriceTax) ?></span> | |
<?php endif; ?> | |
<?php endif; ?> | |
</p> | |
<?php else: ?> | |
<?php if ($this->displayBothPrices()): ?> | |
<span class="price-excluding-tax"> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceTax) ?></span> | |
<span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span> | |
</span> | |
<span class="price-including-tax"> | |
<?php echo $_coreHelper->currency($_minimalPriceInclTax) ?> | |
<span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span> | |
</span> | |
<?php else: ?> | |
<span class="price-excluding-tax"> | |
<span itemprop="price"><?php echo $_coreHelper->currency($_minimalPriceTax) ?></span> | |
<span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span> | |
</span> | |
<?php endif; ?> | |
<?php endif; ?> | |
<?php endif; ?> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment