waterparty Posted April 8, 2022 Share Posted April 8, 2022 (edited) Hello, here is a long nice history about an error and the understanding for a newieb like me😄. So the error in fact its just the Status on the back office and front its not working automatically, doing a new installation on the demo website it works automatically. Back-office: Front-office: I saw in a lot of diferent topics here (Prestashop Forum) the same error and people doing his own module to do this, or just updating the modules and PS works again (not my case) i wan to know exactlly what its happening, if is possible. What is happening: When the customer make a order, and choose, the wire payment, its should send 2 emails, one for the confirmation (this sent automatically, works fine) and the second one with the wirepayment details (this not work auto, only if changuing manually its sent). The emails works fine and i have a SMTP server well configured. The email with the bank details as well work fine and no problems with the templates. I check aswell the configuration of the estatus and its only with the option "Send a email" (last one on the pic) Then: When i go to PHPAdmin and looks the orders (ps_orders) i can see the "Current_Status ID" its 0, and it should be 10 (for the status awaiting for bank transfer o bank payment). Thats for me means that a module or a hook its doing a conflict. So i desactivated all the payment modules except bank payment and still not working, (some are current_state 10 because i changued manually). All this hapenned in PS 1.7.6.8 and with the module "1 click upgrade" i update to 1.7.8.5 (last one) and still same error, its not changuing the status. So: In my adventure to solve this i found a lot of dev trying to do this by a custom module, but im a rookie on PHP and im not sure how to doit exactlly. But i manage to understand how the php works, i found that might the problem its in the "ps_wirepayment/front/validate.php" but not sure how to fix or try it. Answers: PS-version: 1.7.6.8(my backup) and 1.7.8.5 (updated, today) PHP-version: 7.2.4 Some topics that i think it's related to my problem and i already saw and try it: Topic 1: Topic 2: Topic 3: Topic 4: Thank you in advance, sorry for my english, im spanish and i hope someone can help me, im desperated. Also, please, try to dont tell me to call the hosting or installing a module to changue, because i understand that it could be work just with the default modules ¿no? and want to fix the problem by my self, and im doing all this on localhost. Edited April 8, 2022 by waterparty duplicated photo (see edit history) Link to comment Share on other sites More sharing options...
Ress Posted April 8, 2022 Share Posted April 8, 2022 Does the customer reach the order confirmation page? From what I imagine, the order process does not reach the end, an error occurs until the current state is set (the order has been created so far). Did you try to place an order with active debugging? Link to comment Share on other sites More sharing options...
Janett Posted April 8, 2022 Share Posted April 8, 2022 Did you have 2 or more Order Status with same name ? Because duplicate Order status name cause issues in latest versions Link to comment Share on other sites More sharing options...
waterparty Posted April 8, 2022 Author Share Posted April 8, 2022 36 minutes ago, Ress said: Does the customer reach the order confirmation page? From what I imagine, the order process does not reach the end, an error occurs until the current state is set (the order has been created so far). Did you try to place an order with active debugging? Hi! Yes, the order confirmation sent automaticlly, but the other email with the bank details not, only when i do it manually. I try the debugging and the last step is in /modules/ps_wirepayment/controller/front/validation.php but as you say i think the order has been created, where you would look at it, for debugging? Many thanks. Link to comment Share on other sites More sharing options...
waterparty Posted April 8, 2022 Author Share Posted April 8, 2022 39 minutes ago, Janett said: Did you have 2 or more Order Status with same name ? Because duplicate Order status name cause issues in latest versions Hello! Mhhm i have 27 Status different and none are the same. Link to comment Share on other sites More sharing options...
waterparty Posted April 11, 2022 Author Share Posted April 11, 2022 up! Happy mondays! 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