PWaddict Posted July 4, 2024 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.
PWaddict Posted July 12, 2024 Author 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 before $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 . "/"); }
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