Jump to content

Fatal error (Order -> conversion_rate is empty) in prestashop 1.4


tarek.fellah

Recommended Posts

I would like to add dropdown option to let user select the store in which he can get his produt in the carrier selection page, i added a module for that, also i added a field in the order class, and the orders table, when i tried to save the order in ParentOrderController.php,it is the right place to do that? i get an error: Order->conversion_rate is empty

 

this is my code

$order = new Order((int)($this->id_order));
$order->magasin = (string)Tools::getValue('listmagasins');
$order->save();

I tried to store the $order->magasin in a file to retrieve its content, and it gives me what i expect. The problem whith

$order->save(); i think that this statement is used to store the order in the database specially the magasin variable.

Thanks in advance.

Edited by tarek.fellah (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...