• Resolved armywifenash

    (@armywifenash)


    Hi,

    Is there anyway to edit the submit form for the campaign. I don’t want ALL countries I just want it to say United States and Canada. Please tell me if there is anyway to do this and if not is there a way to remove the countries drop down menu and just add a Country text box where they can just type in their country and under the text box just say US and Canada residents only?

Viewing 1 replies (of 1 total)
  • Hi,

    Thanks for showing your interest in WP Crowdfunding fundraiser plugin.
    That is not possible to restrict the country. I can help you where’s the file located but I can’t assist with customization.
    Go to modify this file: /wp-content/plugins/wp-crowdfunding/shortcode/Submit_Form.php

    Here is the country and location code:

    
            //Country
            $html .= '<div class="wpneo-single">';
            $html .= '<div class="wpneo-name">'.__( "Country" , "wp-crowdfunding" ).'</div>';
            $html .= '<div class="wpneo-fields">';
            $countries_obj      = new \WC_Countries();
            $countries          = $countries_obj->__get('countries');
            array_unshift($countries, __('Select a country', 'wp-crowdfunding') );
            $html .= '<select name="wpneo-form-country">';
            foreach ($countries as $key=>$value) {
                if( $country==$key ){
                    $html .= '<option selected="selected" value="'.$key.'">'.$value.'</option>';
                }else{
                    $html .= '<option value="'.$key.'">'.$value.'</option>';
                }
            }
            $html .= '</select>';
            $html .= '<small>'.__("Select your country","wp-crowdfunding").'</small>';
            $html .= '</div>';
            $html .= '</div>';
    
            //Location
            $html .= '<div class="wpneo-single">';
            $html .= '<div class="wpneo-name">'.__( "Location" , "wp-crowdfunding" ).'</div>';
            $html .= '<div class="wpneo-fields">';
            $html .= '<input type="text" name="wpneo-form-location" value="'.$location.'" >';
            $html .= '<small>'.__("Put the campaign location here","wp-crowdfunding").'</small>';
            $html .= '</div>';
            $html .= '</div>';
    

    Let me know if you have any other questions 🙂

    [ Signature deleted ]

Viewing 1 replies (of 1 total)

The topic ‘Editing shortcode for campaign submit form’ is closed to new replies.