julianbaros Posted January 31, 2018 Share Posted January 31, 2018 (edited) Hello, I need help for my BO. I'm not a developper I correctly add a new column with the tracking number (cf ModifBO Commande.png). Now I would like to recover the link of the tracking number in the order (cf CommandeNumSuivi) to put it directly in my column. Like that I don't need to go inside each order to see the link of the tracking number. I know know what I need to put in my new function in order to recover the tracking number link. This is my AdminOrdersController.php : <?php class AdminOrdersController extends AdminOrdersControllerCore { public function __construct() { parent::__construct(); // Add tracking number column on BO order's page list $this->_select .= ', a.`shipping_number` as otracking'; $this->fields_list['otracking'] = array( 'title' => $this->l('Numéro de suivi'), 'search' => false, 'callback' => 'printNumSuivi' ); } public function printNumSuivi($id_order, $tr) { } public function renderList() { if(Tools::getValue('iriumExport_order')){ require_once _PS_MODULE_DIR_.'iwebshop/classes/iwebOrder.php'; $this->getList($this->context->language->id, null, null, 0, false); foreach ($this->_list as $i => $row) { iweb\iwebOrder::exportToIrium($row['id_order']); } } $this->toolbar_btn['irium'] = array( 'href' => self::$currentIndex.'&iriumExport_'.$this->table.'=1&token='.$this->token, 'desc' => $this->l('Export to Irium'), 'imgclass' => 'export' ); return parent::renderList(); } } Please help. Edited January 31, 2019 by julianbaros (see edit history) Link to comment Share on other sites More sharing options...
nuno.note Posted August 16, 2018 Share Posted August 16, 2018 hi Good Morning I needed it too Did you retrieve the link? thank you Link to comment Share on other sites More sharing options...
duredo Posted January 30, 2019 Share Posted January 30, 2019 there is solution https://mypresta.eu/en/art/developer/tracking-number-orders-list.html Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now