mojtabam Posted May 31, 2013 Share Posted May 31, 2013 Hi, I am using prestashop 1.5.4.1 on a remote server. I placed an order in the my shop and after generating the invoice, it just shows approximate date of delivery is between Array and Array. Could you please let me know how can I fix it? Thank you very much, Mojtaba Link to comment Share on other sites More sharing options...
Jorge Vargas Posted July 12, 2013 Share Posted July 12, 2013 I have the same bug. Link to comment Share on other sites More sharing options...
NemoPS Posted July 12, 2013 Share Posted July 12, 2013 Are you getting the same issue in the order detail page as well? Link to comment Share on other sites More sharing options...
NemoPS Posted July 12, 2013 Share Posted July 12, 2013 In any case, try opening up dateofdelivery.php (the module) change this if ($datesDelivery = $this->_getDatesOfDelivery($id_carrier, $oos, $order_invoice->date_add)) $return = sprintf($this->l('Approximate date of delivery is between %1$s and %2$s'), $datesDelivery[0], $datesDelivery[1]); into this if ($datesDelivery = $this->_getDatesOfDelivery($id_carrier, $oos, $order_invoice->date_add)) { var_dump($datesDelivery[0]); die(); $return = sprintf($this->l('Approximate date of delivery is between %1$s and %2$s'), $datesDelivery[0], $datesDelivery[1]); } This will kill it, but will give you an insight of the variable. Let us know Link to comment Share on other sites More sharing options...
tuk66 Posted July 12, 2013 Share Posted July 12, 2013 Go to dateofdelivery module and try something in the dateofdelivery.php or orderDetail.tpl files. This error message comes from them. Link to comment Share on other sites More sharing options...
NemoPS Posted July 12, 2013 Share Posted July 12, 2013 Go to dateofdelivery module and try something in the dateofdelivery.php or orderDetail.tpl files. This error message comes from them. No, it' in the php file it's the pdf hook Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 3, 2013 Share Posted September 3, 2013 Hi, I also have the same problem with the module. "Approximate date of delivery is between Array and Array", does anyone have a solution for it? Would be great if someone could help! Link to comment Share on other sites More sharing options...
yotch Posted September 3, 2013 Share Posted September 3, 2013 (edited) Hi there is no need to return? $datesDelivery = array(); if ($datesDelivery = $this-> ............. Edited September 3, 2013 by yotch (see edit history) Link to comment Share on other sites More sharing options...
yotch Posted September 4, 2013 Share Posted September 4, 2013 evry body sleep Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 6, 2013 Share Posted September 6, 2013 This problem needs a fix, anyone know how? Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 12, 2013 Share Posted September 12, 2013 (edited) Anybody? Edited September 18, 2013 by MGLimhamn (see edit history) Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 18, 2013 Share Posted September 18, 2013 Nobody? Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 23, 2013 Share Posted September 23, 2013 No, it' in the php file it's the pdf hook Could you help me fix this problem, Nemo1? Link to comment Share on other sites More sharing options...
MGLimhamn Posted September 30, 2013 Share Posted September 30, 2013 Surely, more people must have the same problem. And it would be great if anyone could help out! Thanks in advance. /MGLimhamn Link to comment Share on other sites More sharing options...
Jorge Vargas Posted October 11, 2013 Share Posted October 11, 2013 I report this bug in http://forge.prestashop.com/browse/PSCFV-10679. Link to comment Share on other sites More sharing options...
MGLimhamn Posted October 14, 2013 Share Posted October 14, 2013 Thanks for doing that, Jorge. Solve this gets solved soon. Link to comment Share on other sites More sharing options...
Recommended Posts