Jump to content

Probleme order validation


Recommended Posts

Hello,

 

Since I've upgraded my shop to 1.5.3.1, the order validation (last step) doesn't work whatever the payment method => blank page.

When I activate the debugger, I've the following message :

[PrestaShopException]

 

Property OrderDetail->id_warehouse is empty

at line 837 in file classes/ObjectModel.php

 

831.

832. $message = $this->validateField($field, $this->$field);

833. if ($message !== true)

834. {

835. if ($die)

836. throw new PrestaShopException($message);

837. return $error_return ? $message : false;

838. }

839. }

840.

841. return true;

This happens even with a new installation and with the default theme.

 

Thank you for your help.

Link to comment
Share on other sites

  • 2 weeks later...

In /classes/orders/OrderDetail.php you need to change the following (line ~164):

'id_warehouse' =>				 array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),

to

'id_warehouse' =>				 array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),

Edited by shamun (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 years later...

In /classes/orders/OrderDetail.php you need to change the following (line ~164):

'id_warehouse' =>				 array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId', 'required' => true),
to

'id_warehouse' =>				 array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),

 

 

Hello,

 

I have the same problem, and the above fix does not work. What should I do?

After I chose the payment (Cash on delivery or wire transfer), once I confirm the order, a blank screen appears.

The error is:

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/splash31/public_html/themes/default-bootstrap/mails/ro/order_conf_product_list.txt" on line 2 "{$product[\'reference\']}" - Unexpected "\" <-- thrown in/home/splash31/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 2

 

Please help.

Edited by luc1979 (see edit history)
Link to comment
Share on other sites

Hello,

 

I have the same problem, and the above fix does not work. What should I do?

After I chose the payment (Cash on delivery or wire transfer), once I confirm the order, a blank screen appears.

The error is:

 

Fatal error: Uncaught --> Smarty Compiler: Syntax error in template "/home/splash31/public_html/themes/default-bootstrap/mails/ro/order_conf_product_list.txt" on line 2 "{$product[\'reference\']}" - Unexpected "\" <-- thrown in/home/splash31/public_html/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 2

 

Please help.

 I solve it. It was a problem with the file order_conf_product_list.txt. Probably broked when I translated it.

I replaced it with a new one from a fresh data base and works now.

Link to comment
Share on other sites

×
×
  • Create New...