"낮은만큼 :"가격은 VAT (세금)를 포함한 가격을 보이고 있지만 없어야합니다.
문제
저는 계층화 된 가격을 가지고 있지만 가장 저렴한 가격을 보여주는 제품을 검색 할 때 VAT (세금)가 포함될 수 있으므로 VAT가 포함되어 있지 않도록 방법을 포함 할 수 있습니다.
이것은 가격을 표시하는 코드 블록입니다.
<?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
.
설정 TE 속성 :
카탈로그 -> 세금 제외
reindex 및 깨끗한 캐시.
세금 표시가 필요한 경우 다음을 시도 할 수 있습니다.
검색 :
.
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue, $_simplePricesTax);
로 변경하십시오 :
.
$_minimalPrice = $_taxHelper->getPrice($_product, $_minimalPriceValue);
나는 당신을 도울 것입니다!
제휴하지 않습니다 magento.stackexchange