Otomaties WooCommerce Extra Checkout Steps
Add extra steps to the checkout process
by Tom Broucke · github.com/tombroucke/otomaties-woocommerce-extra-checkout-steps
★ 1stars
62composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/tombroucke/otomaties-woocommerce-extra-checkout-steps/archive/refs/heads/main.zipAlso on Packagist as tombroucke/otomaties-woocommerce-extra-checkout-steps:
composer require tombroucke/otomaties-woocommerce-extra-checkout-stepsFrom the readme
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
1. Activate the plugin
2. Add one or more extra checkout pages e.g. checkout/billing, checkout/shipping, checkout/overview
3. Add these pages in the correct order in the "Extra Checkout Steps" options page.
4. Create a shortcode for each extra page. e.g.:
5. 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' = 'personaldetails'])).
6. For each page: add some validation logic if needed:
7. The data is saved to the step in WC()-session. If needed, you can use a hook to save the data elsewhere:
8. The default WooCommerce fields are saved by WooCommerce. Possibly, you need to save custom fields to your order. You can use the woocommercecheckoutorderprocessed for this.