PWaddict Posted July 4, 2024 Share Posted July 4, 2024 Hello! Since the related forum is locked, I'm posting here in case any "Padloper 1" users can help. Has anyone figured out how to skip the confirmation and display the success message after pressing the "Procceed to Confirmation" button? This will be useful if there is no actual payment involved. Link to comment Share on other sites More sharing options...
PWaddict Posted July 12, 2024 Author Share Posted July 12, 2024 I'm posting the solution in case any old Padloper user still need this: Open PadOnePageCheckout.module and find the public function renderConfirmation() and place the following code after $out = ''; if($order->pad_paymentmodule == "ProcessWire\PaymentFree") { // just change this line to meet the conditions you would like to apply $orderId = $this->session->orderId; $url = $this->page->httpUrl; return $this->session->redirect($url . "process/" . $orderId . "/"); } 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