Monday, March 6, 2017

Laravel order process, includes a different file for each step of order process. On click to go to next step will sometimes refresh the page

So on our CRM we have an order process, it goes along the lines of: Initiate Call > Pitch > Order > Enter Details > Payment. Each one of these steps has a different file which is PHP included and each file, when the next button is clicked, will change a status variable which is switched through in Laravel in a switch case statement.

My issue is that sometimes when the next button is clicked on one step, it will refresh the page and restart the order process. We use session variables quite a lot during this process so we think it might be a session issue.

Any ideas or input would be greatly appreciated.



via Sam Fullen

Advertisement