jaxTus Posted August 26, 2015 Share Posted August 26, 2015 (edited) Hi, When I try to enter a discount amount of 9.05 on a product I'm receiving the error Invalid price/discount amount. Any other value such as 9.06 is accepted. Also, when I try to create a manual order in the BO with the product I receive the error: Property OrderDetail->reduction_amount is not validat line 846 in file classes/ObjectModel.php ObjectModelCore->validateFields - [line 260 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 464 - classes/ObjectModel.php] ObjectModelCore->add - [line 425 - classes/ObjectModel.php] - [2 Arguments] ObjectModelCore->save - [line 589 - classes/order/OrderDetail.php] OrderDetailCore->create - [line 613 - classes/order/OrderDetail.php] - [7 Arguments] OrderDetailCore->createList - [line 352 - classes/PaymentModule.php] - [7 Arguments] PaymentModuleCore->validateOrder - [line 1361 - modules/paypal/paypal.php] - [10 Arguments] PayPal->validateOrder - [line 1029 - controllers/admin/AdminOrdersController.php] - [9 Arguments] AdminOrdersControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] If I try to add the product to the above failed order creation I get the following Error: impossible to add the product to the cart. textStatus: 'parsererror' errorThrown: 'SyntaxError: Unexpected token <'responseText: Property OrderDetail->reduction_amount is not valid Any thoughts or others come across this? Running: PS 1.6.0.9 Thanks in advance. Edited August 27, 2015 by jaxTus (see edit history) Link to comment Share on other sites More sharing options...
jaxTus Posted August 27, 2015 Author Share Posted August 27, 2015 (edited) I just turned on Dev Mode and did a test sale with pay pal and received the following error: Notice: Undefined index: RedirectRequired in /home/ridersli/public_html/shop/modules/paypal/express_checkout/payment.php on line 312Fatal error: Uncaught exception 'PrestaShopException' with message 'Property OrderDetail->product_price is not valid' in /home/ridersli/public_html/shop/classes/ObjectModel.php:846 Stack trace: #0 /home/ridersli/public_html/shop/classes/ObjectModel.php(260): ObjectModelCore->validateFields() #1 /home/ridersli/public_html/shop/classes/ObjectModel.php(464): ObjectModelCore->getFields() #2 /home/ridersli/public_html/shop/classes/ObjectModel.php(425): ObjectModelCore->add(true, false) #3 /home/ridersli/public_html/shop/classes/order/OrderDetail.php(589): ObjectModelCore->save() #4 /home/ridersli/public_html/shop/classes/order/OrderDetail.php(613): OrderDetailCore->create(Object(Order), Object(Cart), Array, 2, 0, true, 1) #5 /home/ridersli/public_html/shop/classes/PaymentModule.php(352): OrderDetailCore->createList(Object(Order), Object(Cart), 2, Array, 0, true, 1) #6 /home/ridersli/public_html/shop/modules/paypal/paypal.php(1510): PaymentModuleCore->validateOrder(610, 2, 84.95, 'PayPal', 'Payment accepte...', Array, 2, false, in /home/ridersli/public_html/shop/classes/ObjectModel.php on line 846 I'm running the latest version of the Pay Pal Europe module v3.10.1 Please help! Edited August 27, 2015 by jaxTus (see edit history) Link to comment Share on other sites More sharing options...
jaxTus Posted August 29, 2015 Author Share Posted August 29, 2015 Update. Hosting provider has automatically increased our PHP version to 5.4 when we were on 5.3 Reverted back to 5.3 and no longer getting error. Must be a conflict of some sort in the PS core of 1.0.6.9 when running on PHP 5.4. At least my version anyway. Link to comment Share on other sites More sharing options...
subnetmask Posted June 10, 2023 Share Posted June 10, 2023 i've the same issue ... how to solve? ps. 1.7.8.9.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now