Jump to content

[SOLVED] Padloper 1 - How to skip confirmation?


PWaddict
 Share

Recommended Posts

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

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

  • 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
 Share

  • Recently Browsing   0 members

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