2012-05-11 47 views
1

我希望我的发票上显示产品和团体折扣。我修改了我的发票,如下所示:Prestashop:如何在发票上显示产品折扣

参考|说明|数量|单价|折扣|总计|

所以我需要在产品相同的行中显示产品相关的dicount。有什么办法可以做到这一点? 我在谷歌和论坛上搜索,但没有找到答案。

在此先感谢。

回答

0

而在2016年仍然没有答案。我只是用这个和我一起挣扎,过了一段时间,成功了。我不知道在2012年发布了哪个Prestashop,但是,我可以提供一些有关今日1.6.1.9(我的当前版本)的最新版本的prestashop的提示。 对于试图在prestashop中修改发票的任何人,您会在文件夹pdf中找到模板文件,文件名为invoice.product-tab.tpl,用于编辑和添加有关产品(价格,税金,折扣等)的字段。 所有你需要知道的是:

$order_detail.product_name -> returns the name of the product 
$order_detail.unit_price_tax_excl_before_specific_price -> returns the price of product without tax and before discount 
$order_detail.unit_price_tax_excl_including_ecotax -> returns product price without tax and included eco tax (if there is 1) 
$order_detail.order_detail_tax_label -> return the tax percentage 
$order_detail.product_quantity -> returns the quantity of orderd product 
$order_detail.total_price_tax_incl_including_ecotax - > returns the total amout that is product price + tax 

有了这个代码,你可以在PRECENTAGE或现金折扣计算,你可以在teplate使用它。 .tpl中还有其他几个代码,但这不是这个问题的一部分。

希望这会帮助任何人。

相关问题