• There are plugins that add forms at woocommerce_before_checkout_form action. You’re calling this action inside the checkout form. So you get a form inside the form and order cannot be completed. For example, WooCommerce Points and Rewards does that. I don’t think there is any reasonable way of fixing this besides moving this action above the tabs.

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

    (@diana_burduja)

    I see the problem. On the other hand if the woocommerce_before_checkout_form hook is outside the form, then it will not be part of any of the steps and it will be shown in front of every step.

    For example, HTML for the coupon form is before the checkout <form>, as you would like it, but then we coded it to be “display: none” and to show up only when the Order step is active. For the WooCommerce Points and Rewards form to work, only changing the woocommerce_before_checkout_form hook will not suffice. Additional code needs to be written for every form hooked with woocommerce_before_checkout_form in order to show up only within a special step.

    I’m afraid currently we don’t have a solution for this issue. We’ll consider it in the future, but currently we don’t have a solution.

Viewing 1 replies (of 1 total)
  • The topic ‘conflict with other plugins due to nested forms’ is closed to new replies.