• Resolved franklinespinola

    (@franklinespinola)


    Hello,

    I created a Select field for my products. How can I get access to the select input value in functions.php?

    Regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author acowebs

    (@acowebs)

    You can use $_POST[field name] for the submitted data. Field name is which set while creating the field.

    Thread Starter franklinespinola

    (@franklinespinola)

    Thanks for your answer.

    The data has not been sent yet.

    What I need is to update the price based on the current value of the select input in functions.php

    Plugin Author acowebs

    (@acowebs)

    You can see each field and its name if you look at the source code. And use default php POST to get the data. Not sure why you are not getting the data once the user submit the form.
    Or you want option field data before user submit the form?

    Our premium version providing price options based on fields choose by customer. You can find more information on premium version at https://acowebs.com/woo-custom-product-addons/

    Thread Starter franklinespinola

    (@franklinespinola)

    exactly, I want the option field data before user submit the form.

    Plugin Author acowebs

    (@acowebs)

    That option is not possible as of now with this plugin. You might need to modify the core plugin code itself. But that is not recommended.

    Thread Starter franklinespinola

    (@franklinespinola)

    Ok ,thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Access to the fields I created’ is closed to new replies.