Question

I have a product which has tiered prices but when i search for the item it show the lowest prices but includes VAT (tax) how could i get it so the VAT is not included.

This is the block of code which displays the price.

<?php if ($this->getDisplayMinimalPrice() && $_minimalPriceValue && $_minimalPriceValue < $_convertedFinalPrice): ?>

        <?php $_minimalPriceDisplayValue = $_minimalPrice; ?>
        <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, array(0, 1, 4))): ?>
            <?php $_minimalPriceDisplayValue = $_minimalPrice + $_weeeTaxAmount; ?>
        <?php endif; ?>

        <?php if ($this->getUseLinkForAsLowAs()): ?>
            <a href="<?php echo $_product->getProductUrl(); ?>" class="minimal-price-link">
        <?php else: ?>
            <span class="minimal-price-link">
        <?php endif ?>
        <span class="label"><?php echo $this->__('As low as:') ?></span>
        <span class="price" id="product-minimal-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->formatPrice($_minimalPriceDisplayValue, false) ?>
            </span>


        <?php if ($this->getUseLinkForAsLowAs()): ?>
            </a>
        <?php else: ?>
            </span>
        <?php endif ?>
    <?php endif; 

I have tried just taking out the

$_weeeTaxAmount 

from the code but that did nothing if anyone could help that would be brilliant

Thank you

Was it helpful?

Solution

If you don't need show taxes in frontend you can try this:

Go to:

System > Configuration > Sales > Tax > Price Display Settings

Set te attribute:

Display Product Prices In Catalog -> Excluding Tax

Reindex and clean cache.

If you need show taxes you can try this:

Search:

$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);

And change it by:

$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue);

I hope will help you!

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top