Download the PHP package tombroucke/otomaties-woocommerce-extra-checkout-steps without Composer
On this page you can find all versions of the php package tombroucke/otomaties-woocommerce-extra-checkout-steps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package otomaties-woocommerce-extra-checkout-steps
Otomaties WooCommerce Extra Checkout Steps
This plugin provides a way to add extra steps to the checkout process
Prerequisites
- PHP 8.x
- ACF PRO
Installation
composer require tombroucke/otomaties-events
Usage
- Activate the plugin
- Add one or more extra checkout pages e.g. checkout/billing, checkout/shipping, checkout/overview
- Add these pages in the correct order in the "Extra Checkout Steps" options page.
-
Create a shortcode for each extra page. e.g.:
-
Add the view for the shortcode. Make sure to add the fields for extra steps, and add a unique name to it (
WooCommerceExtraCheckoutSteps()->make('form-fields', ['name' => 'personal_details'])
). -
For each page: add some validation logic if needed:
-
The data is saved to the step in
WC()->session
. If needed, you can use a hook to save the data elsewhere: - The default WooCommerce fields are saved by WooCommerce. Possibly, you need to save custom fields to your order. You can use the
woocommerce_checkout_order_processed
for this.
All versions of otomaties-woocommerce-extra-checkout-steps with dependencies
illuminate/container Version *
illuminate/config Version *
stoutlogic/acf-builder Version ^1.12