Support Log in

43. Integration with WooCommerce

Developer Guide
Prefer video? Watch the Fillin Forge tutorials 9 short guides covering every feature Watch

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 );
Forge AI Assistant Online

Hi! I'm the Fillin Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs