问题描述
在产品列表中,我需要一次显示含税和不含税的产品价格.
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
设置为No
PrestaShop 后台 -> 高级参数
-> 性能
.
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 的产品列表中一次显示含税和不含税的产品价格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!