Hi @mikewagner,
It is possible to add custom steps with Fluid Checkout, however, we do not have a guide on how to do that. Unfortunately, this type of customization is not covered by our support scope and examples for this are only available in the code for Fluid Checkout PRO.
We can provide a starting point on this, but you would have to look into the plugin’s code and figure out how to add the custom step on your own…
- You would use the hook
fc_register_steps
;
- On your hook function, you call the function
FluidCheckout_Steps::instance()->register_checkout_step
passing the step arguments (see code below);
- Then you would use the hook
fc_output_step_<step_id>
, replace the <step_id>
with the actual custom step id, for example fc_output_step_delivery
, to hook functions to output substeps;
- You can find examples how to output subsets in the plugin’s code.
Step arguments:
// DELIVERY STEP
FluidCheckout_Steps::instance()->register_checkout_step( array(
'step_id' => 'delivery',
'step_title' => _x( 'Delivery date', 'Checkout step title', 'fluid-checkout-pro' ),
'proceed_to_step_button_label' => __( 'Proceed to delivery date', 'fluid-checkout-pro' ),
'priority' => $this->get_delivery_step_priority(),
'render_callback' => array( $this, 'output_step_delivery' ),
'is_complete_callback' => array( $this, 'is_step_complete_delivery' ),
) );
Please note the way to register steps and output substeps is about to change when we launch Fluid Checkout Lite 4.0, which should make the process much easier. Perhaps it would be a good idea to implement your customizations already for the beta version of Fluid Checkout Lite 4.0+ so you don’t have to do it again when we launch it, which should be soon.
I’m closing this ticket for now.
Best,
Diego.