Jump to content

Specific Price - Invalid price/discount amount


Recommended Posts

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 valid
at line 846 in file classes/ObjectModel.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 by jaxTus (see edit history)
Link to comment
Share on other sites

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 312

Fatal 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 by jaxTus (see edit history)
Link to comment
Share on other sites

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

  • 7 years later...

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