Prestashop - 为访客显示不含税的价格
Prestashop - Show the prices are tax excluded for visitors
我正在使用 Prestashop 1.6
当用户是访客或会员时,产品表中的价格旁边会显示提及 "tax excl."。
像这样:
我希望此文本也显示给访问者。
对于访问者,目前显示如下:
因此转到客户 -> 群组,并为所有群组选择 HT 作为价格显示。
此致,
在Back office,customers > groups 选择visitor group 点击修改按钮,将tax 显示改为tax incl,如果是这样,去admin coutries 选择你的国家,点击modify 按钮并启用tax显示
我想我找到了解决办法。在product.tpl中,替换
<span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span>
{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))}
{if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if}
{ /if}
有:
<span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span>
{if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if}
我正在使用 Prestashop 1.6
当用户是访客或会员时,产品表中的价格旁边会显示提及 "tax excl."。
像这样:
我希望此文本也显示给访问者。
对于访问者,目前显示如下:
因此转到客户 -> 群组,并为所有群组选择 HT 作为价格显示。
此致,
在Back office,customers > groups 选择visitor group 点击修改按钮,将tax 显示改为tax incl,如果是这样,去admin coutries 选择你的国家,点击modify 按钮并启用tax显示
我想我找到了解决办法。在product.tpl中,替换
<span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span>
{if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) || !isset($display_tax_label))}
{if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if}
{ /if}
有:
<span id="our_price_display" class="price" itemprop="price" content="{$productPrice}">{convertPrice price=$productPrice|floatval}</span>
{if $priceDisplay == 1} {l s='tax excl.'}{else} {l s='tax incl.'}{/if}