如何在 Prestashop 的产品列表中一次显示含税和不含税的产品价格? [英] How to display product price with and without tax at a time in product list for Prestashop?

查看:58
本文介绍了如何在 Prestashop 的产品列表中一次显示含税和不含税的产品价格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在产品列表中,我需要一次显示含税和不含税的产品价格.

In the product list I need to display the product price with and without tax at a time.

我使用的是 Prestashop 1.6 版.

I am using the version 1.6 of Prestashop.

现在产品列表中显示的是含税价格.我也想显示不含税的价格.

Right now the price including tax is displayed in the product list. I want to display the price excluding tax as well.

我该怎么做?我一直在寻找解决方案,但找不到适合我的解决方案.

How can I do that? I have searched for solution and was not able to find a working solution for me.

推荐答案

product-list.tpl 中找到以下块:

{foreach from=$products item=product name=products}

添加此项以显示不含税价格:

Add this to display price without tax:

{convertPrice price=$product.price_tax_exc}

确保在开发过程中将模板编译设置为强制编译并将Cache设置为NoPrestaShop 后台 -> 高级参数 -> 性能.

Make sure that during development Template compilation is set to Force compilation and Cache is set to No in PrestaShop back-office -> Advanced Parameters -> Performance.

这篇关于如何在 Prestashop 的产品列表中一次显示含税和不含税的产品价格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆