rhythm Posted July 2, 2019 Share Posted July 2, 2019 Hello, How do you create an order if cart object does not include shipping price with WebService? What happens is prices don't match, payment module fails to validate order, sends out payment error email to the user. Module is ps_cashondelivery, tried codfee module too. Tried to work around this by giving incorrect user email from the start to catch error email, updating total price with shipping (newly created order has it), deleting order_history error, setting correct email for the user, updating order_state to order_state that I created (with parameter send_email = 1) and the whole thing still fails because the email template does not have the required data (most of the data are {placeholder} in the sent email, only validateOrder method has the full data for the email which is only executed when I am creating a order for the first time) Also, current_state parameter is ignored when creating a new order. So what are my options? Can't edit any of PrestaShop files Link to comment Share on other sites More sharing options...
rhythm Posted July 3, 2019 Author Share Posted July 3, 2019 Anyone? Link to comment Share on other sites More sharing options...
rhythm Posted July 4, 2019 Author Share Posted July 4, 2019 Will keep spamming this to up the thread Link to comment Share on other sites More sharing options...
rhythm Posted July 8, 2019 Author Share Posted July 8, 2019 Up, help would be appreciated if anyone knows how to create an order without payment error from the first try 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