Jump to content

Recommended Posts

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

post-468047-0-72684200-1370037055_thumb.png

Link to comment
Share on other sites

  • 1 month later...

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

  • 1 month later...
  • 2 weeks later...
×
×
  • Create New...