PiotrLolo Posted July 11, 2017 Share Posted July 11, 2017 Prestashop 1.6.1.12, Paypal module 3.11.4 I have a product with 0 quantity but I allow customers to buy it (as a pre-order). If someone pays with paypal the order status is set first to "payment accepted" and then to "out of stock". How to reverse this? It doesn't look good in the backoffice when orders are "out of stock" but they are actually paid. I also have PayU module and it sets the order status as I want ("payment accepted" as a final status). Link to comment Share on other sites More sharing options...
Scully Posted July 11, 2017 Share Posted July 11, 2017 Go to backoffice -> orders -> order state. There you'll find the out-of-stock status wich has usually id 9. Unset "send email to customer when order status changes" and the customer will not get this kind of e-mails anymore. Link to comment Share on other sites More sharing options...
PiotrLolo Posted July 11, 2017 Author Share Posted July 11, 2017 Go to backoffice -> orders -> order state. There you'll find the out-of-stock status wich has usually id 9. Unset "send email to customer when order status changes" and the customer will not get this kind of e-mails anymore. It's not what I'm talking about. My customers don't receive e-mail about "out of stock". It will be the best to show example. My back office looks like this: Order number, amount, method of payment, order status 111, 100€, PayU, payment accepted 222, 100€, PayPal, out of stock 333, 100€, PayPal, out of stock 444, 100€, PayU, payment accepted I want it too look like this because everything is already paid: 111, 100€, PayU, payment accepted 222, 100€, PayPal, payment accepted 333, 100€, PayPal, payment accepted 444, 100€, PayU, payment accepted When I check an order paid with PayPal I see in history: 10:50 out of stock (last status) 10:50 payment accepted When I check an order paid with PayU I see in history: 10:50 payment accepted (last status) 10:50 out of stock 10:49 waiting for payment I want to force PayPal module to set last status "payment accepted" instead of "out of stock" :-) Link to comment Share on other sites More sharing options...
Scully Posted July 11, 2017 Share Posted July 11, 2017 Ok, i got it. It would require a rewrite of the paypal module. I quickly searched may paypal source codes for this string Mail::send which is the default prestashop command for sending emails. I only found one occurence which is an error message but not related to the status mentionned. 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