【问题标题】:Prestashop: How to display product discount on invoicePrestashop:如何在发票上显示产品折扣
【发布时间】:2012-05-11 10:45:23
【问题描述】:

我希望在我的发票上显示产品和团体折扣。我已将发票修改为如下所示:

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

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

提前致谢。

【问题讨论】:

    标签: product prestashop invoice discount


    【解决方案1】:

    在 2016 年仍然没有答案。我只是在为此苦苦挣扎,过了一会儿,成功了。我不知道哪个 Prestashop 是在 2012 年发布的,但是我可以提供一些关于今天 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
    

    使用此代码,您可以计算百分比或现金折扣,并且可以在 teplate 中使用它。 .tpl 中还有一些其他代码,但这不是这个问题的一部分。

    希望这对任何人都有帮助。

    【讨论】:

      猜你喜欢
      • 2020-11-05
      • 1970-01-01
      • 1970-01-01
      • 2022-11-21
      • 2020-01-15
      • 1970-01-01
      • 2013-03-03
      • 2022-11-11
      • 2018-07-06
      相关资源
      最近更新 更多