• hi,

    I am trying to add the content of a text field in a dynamic way, that means, I want to fill in the input text field of a product when I click on the “Add to cart” button.

    I now edited the link of “Add to cart” button adding the field name, “alg_wc_pif_global_1=text_to_fill_in” , hoping that the POST would have caught it but it does not work ??

    Any idea on how I can achieve this?

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @buscon

    From my understanding, you are using the popup modal for Add to cart process.

    Currently, it is not possible to fill the input text field of a product after Add to Cart button is selected.

    All the custom input fields for the products appear before the Add to cart button.

    Thread Starter buscon

    (@buscon)

    hi,

    thanks a lot for your answer!

    is there a way to fill in the input text before the “Add to cart” button appears?
    The content I want to fill the input text with is already available when i get to the page with the button.

    Hi @buscon

    You are welcome.

    We do have a shortcode in our plugin named ‘[alg_display_product_input_fields]’ which you can use it in your custom code. This shortcode will help you to achieve your requirements.

    Also, we do have a PHP function ‘alg_display_product_input_fields()’ which will also help you to achieve your requirements.

    Please let me know if you have any further queries.

    Regards,
    Komal Maru

    Hi @komal-maru

    I am creating my website.
    I also would like to know how to fill in a text field through a GET.
    like, https://example.com/page1?param1=value1
    and
    put value1 in param1 field.

    Would you give some example for php codes or shortcode?

    Thanks,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘FIll in a text field through a POST/GET’ is closed to new replies.