Jump to content

what is considered a "valid" order?


fbas

Recommended Posts

The Order class (and orders table in db) has a boolean field named 'valid'. The description in the class file is

"Order validity (paid and not canceled)"

 

What is the more precise criteria for this field?

 

Items in "back order" status are not being considered valid, and they probably should since they are paid.

 

Thanks,

 

fbas

Link to comment
Share on other sites

it is a deprecated field, but you can review the OrderHistory class, changeIdOrderState function to determine when valid becomes true.

 

if i recall properly, "valid" is an indication that the payment was accepted and the customer has not cancelled/refunded the order.

for example, paying by check/bankwire would not be "valid", since you have not received payment

paying by paypal would likely be "valid", so long as paypal has returned a successful payment response.

Link to comment
Share on other sites

  • 1 month later...

it is a setting in the order status. in the back office, go to orders | statuses section, click on the "awaiting bank wire payment" and change the settings.

 

note: by doing this, you are telling prestashop that even though payment has not been received, this order is valid and the customer will receive an invoice, and be allowed to access downloadable products (maybe not an issue for you, but perhaps others who might find this thread helpful)

  • Like 1
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...