• Hello Team,

    I am using you plugin and this is working good. Now I have one small issue that when I add-to-cart product with page load than text field data pass successful but when I add-to-cart product with ajax on than time text field data not pass.

    so please help me is this possible to text field data passing with ajax???

Viewing 1 replies (of 1 total)
  • Plugin Contributor sarkparanjothi

    (@sarkparanjothi)

    Sorry for the delay, Yes it is possible.

    When your click add to cart button get all value from fields.

    example :

    var fields = $( ".wccpf_fields_table input" ), feild_arr = [];
    for( var i = 0; i < fields.length; i++ ){
    	feild_arr[ $( fields[i] ).attr("name") ] = $( fields[i] ).val();
    }

    use the data feild_arr in your ajax call

Viewing 1 replies (of 1 total)
  • The topic ‘Send text field data with ajax’ is closed to new replies.