Jump to content
thirty bees forum
  • 0

Invoice number in emails by updating classes/module/PaymentModule.php


30knees

Question

Is it correct that I would need to update classes/module/PaymentModule.php to enable {invoice_number} to be used in emails, eg bankwire module?

https://github.com/thirtybees/thirtybees/blob/main/classes/module/PaymentModule.php

And then adding here:

$params = [
                                '{voucher_amount}' => Tools::displayPrice($voucher->reduction_amount, $this->context->currency, false),
                                '{voucher_num}'    => $voucher->code,
                                '{firstname}'      => $this->context->customer->firstname,
                                '{lastname}'       => $this->context->customer->lastname,
                                '{id_order}'       => $order->reference,
                                '{order_name}'     => $order->getUniqReference(),
                            ];

'{invoice_number}' => $order->invoice_number,

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

This class handles sending of order_conf and voucher emails. So if you want to extend those email templates, then it's the right place to modify.

It has no impact on order status emails, like bankwire, though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...