• Resolved joncon62

    (@joncon62)


    I would like to include an AIO form in the checkout page but in order for the fields to be read into $_POST they need a name attribute. Is there an easy way to add this attribute to all form fields and if not would you consider adding this feature?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    So if i understand correctly when you submit a form you want to include some form fields in the url that you are using?

    Thread Starter joncon62

    (@joncon62)

    I am thinking of using the form(s) on the woocommerce checkout page so I want to capture form data with the ‘Place Order’ submit button, I’m not using the AIO submit button. I am trying to add more registration checkout fields to an order. If the form fields had a name attribute that I could define then I could get the data.

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Oh i don’t think that will work as you expect unless you do major changes to the plugin, if you add a form in the checkout page the form will be processed by the plugin not woocommerce unless you modify the plugin via CSS or javascript to make it work differently and if you are already doing that you could also just use javascript to include a name in each field.

    Regards!

    Thread Starter joncon62

    (@joncon62)

    You are right, I have just created the name fields in js and can now capture the form data. The plugin is eventON which is quite well documented so I need to see if I can create the new registration fields from the captured data.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature request: name attribute’ is closed to new replies.