Customer Order Form
Now that you have created a checkout template and template file and would like to use the inbuilt Padloper customer order form, you need to add some code to your checkout template file.
To use Padloper's inbuilt (ProcessWire) order customer form use the following code:
$checkout = $padloper->checkout;
// echo $checkout->render()
// if using delayed output
$content = $checkout->render();
2
3
4
INFO
Please note the use of the global $padloper
variable to access the checkout methods. This is different from how this was done in Padloper 1.
The code above will generate a very long form. Note that some of the form fields will be shown dependent on your shop's checkout settings.
WARNING
It is not currently possible to not display some of the form inputs. In a future release, it will be possible to pass an $options
argument to $padloper->checkout()->render()
to exclude / only include the fields you need.
WARNING
You will need to style this form yourself.
INFO
The countries listed in the countries select field in the form are generated based on your shop's settings and shipping zones.
You are now ready to start testing your order checkout form.