Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fcvolunteer

    (@fcvolunteer)

    Ok, I’ve figured out how to add the fields, by copying the function to my child-theme and updating the remove_action and add_action.

    I’m wondering though, do I need to assign specific field ids for the form to recognize them and send the info. along with the other fields when the form is submitted?

    And I would still like to know if there’s a way to pull in the credit card fields or paypal integration into the registration fields so they have to pay before they can add a campaign.

    Thanks for a great plugin and for the great commenting within the files so even a php newbie like me can see what does what.

    Hello !
    did you find out how you could add or remove fields to the campaign form ?

    Thanks,
    pauline

    I search the same thing. If somebody Know, please let us know.

    Simon

    Just dropping on here to clarify regarding Pauline’s question about adding fields to the campaign form. That can be done using the atcf_shortcode_submit_fields filter. Example:

    function myfilter_atcf_shortcode_submit_fields( $fields ) {
        $fields['newfield'] = array(
            'label'       => 'New Field,
    	'default'     => null,
    	'type'        => 'text',
    	'editable'    => true,
    	'placeholder' => null,
    	'priority'    => 45
        );
        return $fields;
    }
    add_filter( 'atcf_shortcode_submit_fields', 'myfilter_atcf_shortcode_submit_fields' );

    To get a good idea of how this all pieces together, take a look at https://github.com/Astoundify/crowdfunding/blob/develop/includes/shortcode-submit.php from lines 144-313.

    Cheers,
    Eric

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to add fields to the registration form?’ is closed to new replies.