Fillin Forge does not create or change WooCommerce orders. These two patterns use the shortcode and the submission event.
Show a form on product pages
Print the shortcode from a WooCommerce hook:
php
add_action( 'woocommerce_after_single_product_summary', function () {
echo do_shortcode( 'Form not found.
' );
}, 15 );React to a submission
Use the submission event and check the form id:
php
add_action( 'formforge/submission_created', function ( $submission_id, $payload ) {
if ( 42 !== $payload['form_id'] ) {
return;
}
// $payload['fields'] holds the submitted values by field key
}, 10, 2 );