Fundify Crowdfunding (Moved)
How to add fields to the registration form? (6 posts)

  1. fcvolunteer
    Posted 2 years ago #

    I'm wondering how I can add additional fields to the the registration form.

    I'm also wondering whether it's possible to call the credit card input function so users can pay to register.



  2. fcvolunteer
    Posted 2 years ago #

    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.

  3. pouliiine
    Posted 2 years ago #

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


  4. simonlemay
    Posted 2 years ago #

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


  5. simonlemay
    Posted 2 years ago #

  6. Eric Daams
    Posted 2 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic