• Resolved OC WordPress Web Designer

    (@oc-wordpress-web-designer)


    I added an additional tab with the info from your page below with a gravity form to submit for a step: https://www.silkypress.com/woocommerce-multi-step-checkout-pro-documentation/

    /**
    * Add the Step
    */
    add_filter(‘wpmc_modify_steps’, ‘wpmc_add_delivery_time_step’);
    if ( !function_exists(‘wpmc_add_delivery_time_step’) ) {
    function wpmc_add_delivery_time_step($steps) {
    $steps[‘delivery’] = array(
    ‘title’ => __(‘Informed Consent’),
    ‘position’ => 3,
    ‘class’ => ‘wpmc-step-delivery’,
    ‘sections’ => array(‘delivery’),
    );
    return $steps;
    }
    }

    /**
    * Add content to the step
    */
    add_action(‘wmsc_step_content_delivery’, ‘wmsc_step_content_delivery’);
    if ( !function_exists(‘wmsc_step_content_delivery’) ) {
    function wmsc_step_content_delivery() {
    echo do_shortcode(“[gravityform id=2 ajax=true]”);
    }
    }

    After adding the product https://www.bloodtesting.stagingdomain.xyz/?product=blood-test to cart -> checkout…. the first step in a gravity form to submit before next step, but on form submission

    “We were unable to process your order, please try again.” In red

    The form does work and gets sent. I receive the email with the form but the error on the checkout occurs. How can I fix this?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    I’m sorry, you cannot add another <form> element inside the checkout form.

    When clicking the “Submit” button both the forms (the gravity form and the checkout form) are submitted, therefore the error.

    Maybe you can consider adding a separate page before the checkout for the “Informed Consent” form.

Viewing 1 replies (of 1 total)
  • The topic ‘Checkout Error Submitting Gravity Form On Checkout Step’ is closed to new replies.