WordPress.org

Forums

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

  1. fcvolunteer
    Member
    Posted 1 year 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.

    Thanks!

    http://wordpress.org/plugins/appthemer-crowdfunding/

  2. fcvolunteer
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

    Thanks,
    pauline

  4. simonlemay
    Member
    Posted 1 year ago #

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

    Simon

  5. simonlemay
    Member
    Posted 1 year ago #

  6. Eric Daams
    Member
    Posted 12 months 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.

    Cheers,
    Eric

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic