“低于:”价格正展示包括增值税(税)但应该没有
题
我有一个具有分层价格的产品,但是当我搜索它显示最低的价格但包括增值税(税收)我怎么能得到它,所以没有包括增值税。
这是显示价格的代码块。
<?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;
.
我试过刚刚取出
$_weeeTaxAmount
.
来自代码,但如果有人可以帮助这将是出色的,那就没有什么?
谢谢
解决方案
如果您不需要在前端显示税收,您可以尝试这个:
转到:
System > Configuration > Sales > Tax > Price Display Settings
.
set te属性:
目录中的产品价格 - >不包括税收
reindex和clean缓存。
如果您需要显示税收,您可以尝试这个:
搜索:
.
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
并通过以下方式进行更改:
.
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue);
我希望能帮助你!