PrestashopEnthu Posted August 27, 2018 Share Posted August 27, 2018 Hi Prestashop Developers, I have created a module to insert tracking links upon new orders that uses certain carrier. I have checked that the tracking number is inserted in database and also found in Orders page. In database, it is stored in orders_carrier. $orderinfo = new Order($params['id_order']); $carrierinifo = new Carrier($orderinfo->id_carrier); if ($carrierinifo->name=='Standard Delivery') { $ordercarrier = new OrderCarrier($orderinfo->id_carrier); if ($ordercarrier->tracking_number=='') { $ordercarrier->tracking_number = $this->config['TRACK_PRE'].str_pad($orderinfo->id, $this->config['DIGI'], "0", STR_PAD_LEFT); Db::getInstance()->update( 'order_carrier', array('tracking_number'=>$ordercarrier->tracking_number), 'id_order='.$orderinfo->id ); I cannot fathom why the tracking number is not displayed in "Shipped" template. It will only be successfully displayed if I click edit (under the shipping tab in Orders page) and re-save the tracking number. (When the tracking number is already saved and displayed in Orders page). This is the extra step and I am omitted from automating this step. Is there anyone facing the same problem? Thank you. Link to comment Share on other sites More sharing options...
Guest Posted August 27, 2018 Share Posted August 27, 2018 Should use/modify in_transit template 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