Post by straightlight » Sat Dec 23, 2017 12:22 am

Ok so repost the entire added code as an attachment file please!

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Fri Dec 29, 2017 3:17 am

Hello and sorry for delay. Christmas time.
Here are all code.

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by straightlight » Fri Dec 29, 2017 3:27 am

What's been requested on the above is to post the entire TPL file you modified as a result on following the previous instructions.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Sat Dec 30, 2017 12:03 am

So here are all files.

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by straightlight » Sat Dec 30, 2017 12:11 am

You're using Journal2 . Clear the Journal2's cache as well as your storage/cache folder (except index.html file) noticing if this will rectify the issue. If not, with Journal2, revert back to the default theme and put the $text_customer_group_id block of code from your journal2's order.tpl file into the default one and see if you will then notice the difference.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Sat Dec 30, 2017 1:18 am

Hello, thnak you for your quick response.
I have cleared Journal cache and storage/cache but it the same message on order email.
The same happend if i change to default theme.
Always the same message text_customer_group_id

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by straightlight » Sat Dec 30, 2017 1:26 am

Are you using HTML or text emails with your orders?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by straightlight » Sat Dec 30, 2017 1:30 am

Also ensure to test an order that has a registered customer account.

To be sure, in your order.tpl file,

replace:

Code: Select all

<?php if ($text_customer_group_id) { ?>
with:

Code: Select all

<?php if (!empty($text_customer_group_id)) { ?>

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Sat Dec 30, 2017 1:53 am

I use html emails.
Just tried again but the same problem.
All my test are with registered client.

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by straightlight » Sat Dec 30, 2017 1:58 am

Might be a cache issue even though you clear it. As another test,

replace:

Code: Select all

<?php if (!empty($text_customer_group_id)) { ?>
    <?php echo $text_customer_group_id; ?>
<?php } ?>
with:

Code: Select all

<b>Test123</b>
See if you do notice Test123 on your outputted order.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Sat Dec 30, 2017 2:07 am

Replaced the code with Test123 and on order email i can see the text Test123.

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by straightlight » Sat Dec 30, 2017 2:09 am

Odd issue. Are you using any multistore extension or any extensions that affects the store settings?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Sat Dec 30, 2017 2:23 am

Not that I am aware about.
I use Journal theme obviously.
Εxtra modules are Intuitive Shipping, GOP Piraeus Bank Gr and OCGR XML Feed

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by straightlight » Sat Dec 30, 2017 2:27 am

In the catalog/model/order.php file,

where:

Code: Select all

$data['text_customer_group_id'] 
add below:

Code: Select all

$this->log->write('TEXT_CUSTOMER_GROUP_ID :: DEBUG :: ' . html_entity_decode($data['text_customer_group_id'], ENT_QUOTES, 'UTF-8'));
Then, visit your admin error logs and see if you do notice the new line: TEXT_CUSTOMER_GROUP_ID :: ...

If so, please provide the entire line.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by nikolaoskai » Wed Jan 03, 2018 4:51 pm

My order.php file is in a folder called checkout so i think the correct path is catalog/model/checkout/order.php. I have put there your code and make again a test order but i get no error log in admin.

Newbie

Posts

Joined
Wed Nov 15, 2017 1:43 am

Post by xxvirusxx » Wed Jan 03, 2018 5:11 pm

Try this extension if you want to have customer fields in invoice.

https://www.opencart.com/index.php?rout ... n_id=23447

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: No registered users and 2 guests