"Aussi bas que:" Le prix montre le prix, y compris la TVA (taxe) mais devrait être sans

magento.stackexchange https://magento.stackexchange.com//questions/33042

  •  12-12-2019
  •  | 
  •  

Question

J'ai un produit qui a des prix à plusieurs niveaux, mais lorsque je recherche l'article, il affiche les prix les plus bas, mais inclut la TVA (taxe) Comment puis-je l'obtenir afin que la TVA ne soit pas incluse.

Ceci est le bloc de code qui affiche le prix.

<?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; 

J'ai essayé de sortir le

$_weeeTaxAmount 

du code mais cela n'a rien fait si quelqu'un pouvait aider ce serait brillant

merci

Était-ce utile?

La solution

Si vous n'avez pas besoin de la taxe d'affichage dans Frontend, vous pouvez essayer ceci:

aller à:

System > Configuration > Sales > Tax > Price Display Settings

Set TE Attribut:

Afficher les prix des produits dans le catalogue -> Hors taxe

réindex et cache propre.

Si vous avez besoin d'impôts, vous pouvez essayer ceci:

Rechercher:

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

et le changer par:

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

J'espère vous aidera!

Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange
scroll top