Post by TonGeul » Tue Nov 03, 2020 7:21 pm

had this in OC 1.5, but now i use OC3 (plus Journal3), i am lost, can't find anything on this

New member

Posts

Joined
Fri Nov 09, 2012 6:36 am

Post by straightlight » Tue Nov 03, 2020 7:41 pm

What is this post really about?

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by TonGeul » Tue Nov 03, 2020 8:47 pm

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

New member

Posts

Joined
Fri Nov 09, 2012 6:36 am

Post by straightlight » Tue Nov 03, 2020 8:58 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by TonGeul » Tue Nov 03, 2020 9:53 pm

can it be that something is missing in "ID: %s" ?

New member

Posts

Joined
Fri Nov 09, 2012 6:36 am

Post by straightlight » 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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by TonGeul » 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

New member

Posts

Joined
Fri Nov 09, 2012 6:36 am

Post by straightlight » Tue Nov 03, 2020 10:23 pm

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 10 guests