fbas Posted July 2, 2012 Share Posted July 2, 2012 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 More sharing options...
bellini13 Posted July 2, 2012 Share Posted July 2, 2012 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 More sharing options...
khangwei Posted August 5, 2012 Share Posted August 5, 2012 my orders from bankwire are not valid, how do i make them valid by default? where should i go to in terms of the coding? Link to comment Share on other sites More sharing options...
bellini13 Posted August 5, 2012 Share Posted August 5, 2012 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) 1 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