ding Posted December 6, 2010 Share Posted December 6, 2010 hi,allI use Prestashop : 1.2.5 ,i do as ijof9 - 27 July 2009 08:41 PMHi. I kinda hacked it, but here is (hopefully) a solution.1. You open the [root]/classes/PaymentModule.php file;2. You go to line 108, right above the $order-> add() call;3. You put 2 more check-ups:/* script-kiddie fix */ if(!sizeof($order->invoice_date)) $order->invoice_date = '2009-07-27 00:00:00'; if(!sizeof($order->delivery_date)) $order->delivery_date = '2009-07-27 00:00:00'; but it does not workSo does anyone have an idea where i should look to solve this ? Thanks a lotHere is the output of “Tools::dieObject($order);” placed just above “if ($result AND isset($order->id))” in PaymentModule.php (line 128) Order Object ( [id_address_delivery] => 2774 [id_address_invoice] => 2774 [id_cart] => 32385 [id_currency] => 2 [id_lang] => 1 [id_customer] => 1569 [id_carrier] => 17 [secure_key] => 4e2ab1984919a6f908d5a7cd32259cb8 [payment] => Bank Wire [module] => bankwire [recyclable] => 1 [gift] => 0 [gift_message] => [shipping_number] => [shipping_number2] => [shipping_number3] => [shipping_number4] => [shipping_number5] => [shipping_number6] => [shipping_number7] => [shipping_number8] => [shipping_number10] => [shipping_number11] => [shipping_number12] => [shipping_number13] => [shipping_number14] => [shipping_number15] => [shipping_number16] => [shipping_number17] => [shipping_number18] => [shipping_number19] => [shipping_number20] => [shipping_number21] => [shipping_number22] => [shipping_number23] => [shipping_number24] => [shipping_number25] => [shipping_number26] => [shipping_number27] => [shipping_number28] => [shipping_number29] => [shipping_number30] => [total_discounts] => 0 [total_paid] => 4860 [total_paid_real] => 4860 [total_products] => 4860 [total_shipping] => 0 [total_wrapping] => 0 [invoice_number] => [delivery_number] => [invoice_date] => 2009-07-27 00:00:00 [delivery_date] => 2009-07-27 00:00:00 [valid] => [date_add] => [date_upd] => [tables:protected] => Array ( [0] => orders ) [fieldsRequired:protected] => Array ( [0] => id_address_delivery [1] => id_address_invoice [2] => id_cart [3] => id_currency [4] => id_lang [5] => id_customer [6] => id_carrier [7] => payment [8] => total_paid [9] => total_paid_real [10] => total_products ) [fieldsSize:protected] => Array ( [payment] => 32 ) [fieldsValidate:protected] => Array ( [id_address_delivery] => isUnsignedId [id_address_invoice] => isUnsignedId [id_cart] => isUnsignedId [id_currency] => isUnsignedId [id_lang] => isUnsignedId [id_customer] => isUnsignedId [id_carrier] => isUnsignedId [secure_key] => isMd5 [payment] => isGenericName [recyclable] => isBool [gift] => isBool [gift_message] => isMessage [total_discounts] => isPrice [total_paid] => isPrice [total_paid_real] => isPrice [total_products] => isPrice [total_shipping] => isPrice [total_wrapping] => isPrice [shipping_number] => isUrl ) [table:protected] => orders [identifier:protected] => id_order [id] => [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) ) END Link to comment Share on other sites More sharing options...
Recommended Posts