Jump to content
thirty bees forum
  • 0

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


Question

Posted

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,

3 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

Thank you, I was looking for the bankwire status email. Where do I look for that?

Is this something that you would be fine with having in the core? Then I could do a PR.

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...