I am working on OC 3.0.3.8
It's the first time that i attempt to pass data from an extension (shipping extension) to the order info page.
So basically I am trying to pass the tracking number and some other info from the extension to the order info page.
As I understand I need to pass the data from the extension's controller to controller/sale/order.php first.
So the values will be displayed to order_info.twig
I start with the basics as I am a beginner.
Therefore I am trying to load the language files first.
I named the extension as "MyExtension" for reference.
The code that I use is:
in admin/controller/sale/order.php
After line 1273: $data['footer'] = $this->load->controller('common/footer');
Code: Select all
$this->load->controller('extension/shipping/MyExtenison');
$this->load->language('extension/shipping/MyExtenison');
$data['my_extension_text'] = $this->language->get('this_is_my_text');
I tried to use $this->load->language('el-gr/extension/shipping/MyExtenison');
But I guess it doesn't work like that since I get no value at all.
How could I do this?
Thank you in advance!