Is there a way

Hi,

Is there a way where we could add a sign up or login system after a user has press the back this project button?

  • Vaughan

    Hi Aaron,

    Hope you're well?

    This would require some custom coding, you could change the HTML & so on by adding the following to your theme functions.php

    function wdf_checkout_page( $echo = true, $post_id = '' ) {
    		global $wdf_checkout_from_panel, $wdf, $post; $content = '';
    		$post_id = (empty($post_id) ? $post->ID : $post_id );
    		if(!get_post($post_id))
    			return false;
    
    		$meta = get_post_custom($post_id);
    		$settings = get_option('wdf_settings');
    
    		$wdf->front_scripts($post_id);
    
    		$style = ($wdf_checkout_from_panel == true ? '' : wdf_get_style($post_id) );
    		$style = wdf_get_style($post_id);
    
    		$content .= '<form class="wdf_checkout_form '.$style.'" action="'.wdf_get_funder_page('checkout',$post_id).'" method="post">';
    			global $wp_filter;
    			$raised = $wdf->get_amount_raised($post_id);
    			//$goal = $meta['wdf_goal_amount'][0];
    
    			$content .= '<div class="wdf_rewards">';
    			$content .= apply_filters('wdf_error_payment_submit','');
    
    			$content .= '
    			<div class="wdf_payment_options">
    				<div class="wdf_donate_button">'.wdf_pledge_button(false, 'single', $post_id).'</div>
    				<div class="wdf_gateway_choices">'.wdf_gateway_choices(false, (isset($settings['default_gateway']) ? $settings['default_gateway'] : '')).'</div>
    			</div>';
    
    			if(wdf_has_rewards($post_id) && isset($meta['wdf_levels'][0])) {
    				$content .= apply_filters('wdf_before_rewards_title','');
    					$level = maybe_unserialize($meta['wdf_levels'][0]);
    					foreach($level as $index => $data) {
    						$disabled_class = $disabled_input = '';
    						if(isset($data['limit']) && is_numeric($data['limit'])) {
    							$reward_left = $data['limit'] - (isset($data['used']) ? $data['used'] : 0);
    							if($reward_left)
    								$limit_text = ' <span class="wdf_reward_limit">'.__('Limited','wdf').' ('.$reward_left.__(' left of ','wdf').$data['limit'].')'.'</span>';
    
    							else {
    								$limit_text = ' <span class="wdf_reward_limit wdf_reward_limit_gone">'.__('All gone.','wdf').'</span>';
    								$disabled_class = ' wdf_reward_item_disabled';
    								$disabled_input = ' disabled';
    							}
    						}
    						else
    							$limit_text = '';
    
    						$content .= '
    						<div class="wdf_reward_item'.$disabled_class.'">
    							<div class="wdf_reward_choice"><input type="radio" name="wdf_reward" value="'.$index.'" '.$disabled_input.'/><span class="wdf_level_amount" rel="'.$data['amount'].'"> '.$wdf->format_currency('',$data['amount']).$limit_text.'</span></div>
    							<div class="wdf_reward_description">'.html_entity_decode($data['description']).'</div>
    						</div>';
    					}
    					$content .= '
    					<div class="wdf_reward_item wdf_reward_item_none">
    						<div class="wdf_reward_choice"><input type="radio" name="wdf_reward" value="none" /><span class="wdf_level_amount"> '.apply_filters('wdf_no_reward_description',__('None','wdf')).'</span></div>
    					</div>';
    			}
    			$content .= '</div>';
    		$content .= '</form>';
    
    		if($echo) {
    			echo $content;
    			return false;
    		} else {
    			return $content;
    		}
    	}

    That's the same function in the plugin for the checkout page which appears when you press pledge. soif you can get someone to add the login/registration parts into the template. You could perhaps use a login/registration plugin with shortcodes.

    Not sure how simple it would be though or whether that would interfere with the gateway.

    If you wish to advertise for a developer, we have a jobs board you can advertise on here.

    https://premium.wpmudev.org/wordpress-development/

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.