Jump to content

Paypal order payment.php error


b1han177

Recommended Posts

I have my paypal module in sandbox mode everything is right with the setup of it. When I go to my website put product into cart and checkout everything works fine go thru paypal fine when transaction is finished it goes to the payment.php. I have debug on and shows me a .... Fatal error: Uncaught exception 'PrestaShopException' with message 'Property OrderDetail->id_warehouse is empty I have looked everywhere on forum for fix could not find it googled it as well. Could someone tell me what is wrong.

 

I am using the newest versions of both softwares

 

Thanks

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

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'),

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...