Move order requirement fields to the Thank You page

Hi,

The requirements are currently asked before purchase and I would like to move them to the “thank you” page, after payment has been validated.
To do so, I wanted to remove the “render_requirement_fields” action on checkout and tried this snippet, but it didn’t work:

> function hide_requirement_fields()
> {
>     remove_action( 'woocommerce_after_order_notes', 'render_requirement_fields', 20 );
> }
> add_action('template_redirect','hide_requirement_fields');

Could you please help me to make this snippet work ?
Thank you.

Hi,

Unfortunately there’s no easy way to move the order requirement fields to the Thank You page, even if you remove fields from the checkout form, adding fields, validating and saving them on the Thank You page would require advanced customizations.

Would it be possible to add it as a feature in the future ? I would like the checkout page to have as little clutter as possible. Thank you.

Hi,

Thanks for your suggestion, we’ll consider adding this feature.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.