Page 1 of 1

Order ID in banktransfer

Posted: Tue Nov 03, 2020 7:21 pm
by TonGeul
had this in OC 1.5, but now i use OC3 (plus Journal3), i am lost, can't find anything on this

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 7:41 pm
by straightlight
What is this post really about?

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 8:47 pm
by TonGeul
Well, as I already stated. I want the order ID to show up during checkout. It only gives payment details in the text. I had a small free extension in OC1.5 which when you put in , in the payment details of Banktransfer the code %order_ID% , this would be part of the text of the banktransfer. Like : please transfer to above mentioned amount together with order-reference %order_ID% (so invoice number) to SEPA accountnumber ...blablabla

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 8:58 pm
by straightlight
This one's a little bit trickier. Could be achieved with OCMod / VQMod. In catalog/controller/extension/payment/bank_transfer.php file,

find:

Code: Select all

$comment .= $this->language->get('text_payment');
replace with:

Code: Select all

if (isset($this->session->data['order_id'])) {
    $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);

    if ($order_info) {
        $comment .= sprintf($this->language->get('text_payment'), $order_info['order_id']);
    }
}
Then, in your catalog/language/<your_language>/extension/payment/bank_transfer.php file,

replace:

Code: Select all

$_['text_payment']     = 'Your order will not ship until we receive payment.';
with:

Code: Select all

$_['text_payment']     = 'Your order ID: %s will not ship until we receive payment.';
Then, clear your OC cache. This should resolved the issue.

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 9:53 pm
by TonGeul
can it be that something is missing in "ID: %s" ?

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 10:16 pm
by straightlight
TonGeul wrote:
Tue Nov 03, 2020 9:53 pm
can it be that something is missing in "ID: %s" ?
The modifications above will show you the order ID in the text_payment key.

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 10:18 pm
by TonGeul
straightlight wrote:
Tue Nov 03, 2020 10:16 pm
TonGeul wrote:
Tue Nov 03, 2020 9:53 pm
can it be that something is missing in "ID: %s" ?
The modifications above will show you the order ID in the text_payment key.
unfortunally not

Re: Order ID in banktransfer

Posted: Tue Nov 03, 2020 10:23 pm
by straightlight
TonGeul wrote:
Tue Nov 03, 2020 10:18 pm
straightlight wrote:
Tue Nov 03, 2020 10:16 pm
TonGeul wrote:
Tue Nov 03, 2020 9:53 pm
can it be that something is missing in "ID: %s" ?
The modifications above will show you the order ID in the text_payment key.
unfortunally not
Ok.