Magento - 产品详细信息页面不含税,但列表页面包含税

发布于 2024-10-17 19:02:44 字数 105 浏览 1 评论 0原文

我的问题是,产品详细信息和列表页面中的价格不同。

我想在整个网站上显示含税价格。

我怎样才能解决这个问题可能是Magento后端的配置问题。

多谢。

My problem is that I don't have the same price in Product Details and Listing Page.

I want to have all over the website the prices Included Tax.

How Can I solve this problem probably of configuration in Magento backend.

Thanks a lot.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏辞 2024-10-24 19:02:44

产品列表:
看下面的文件
root/app/design/frontend/default/default/template/catalog/product/price.phtml

您将看到以下代码,您可以更改您想要的内容:

    <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
        <span class="price-excluding-tax">
            <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
            <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
            </span>
        </span>
        <span class="price-including-tax">
            <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
            <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
            </span>
        </span>
    <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
        <span class="price-excluding-tax">
            <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
            <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
            </span>
        </span>

for Product List :
look at the following file
root/app/design/frontend/default/default/template/catalog/product/price.phtml

you will see the following code which you can change what you want :

    <?php if ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 0)): // including ?>
        <span class="price-excluding-tax">
            <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
            <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
            </span>
        </span>
        <span class="price-including-tax">
            <span class="label"><?php echo $_taxHelper->__('Incl. Tax:') ?></span>
            <span class="price" id="price-including-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->currency($_finalPriceInclTax+$_weeeTaxAmount,true,false) ?>
            </span>
        </span>
    <?php elseif ($_weeeTaxAmount && $_weeeHelper->typeOfDisplay($_product, 1)): // incl. + weee ?>
        <span class="price-excluding-tax">
            <span class="label"><?php echo $_taxHelper->__('Excl. Tax:') ?></span>
            <span class="price" id="price-excluding-tax-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>">
                <?php echo $_coreHelper->currency($_price+$_weeeTaxAmount,true,false) ?>
            </span>
        </span>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文