Jump to content

Recommended Posts

Posted

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.

Posted

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 . "/");
    }

 

  • PWaddict changed the title to [SOLVED] Padloper 1 - How to skip confirmation?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...