-
Author
-
November 29, 2013 at 10:35 #7454vanailaParticipant
Is that possible that the registration stay incomplete as the user doesn’t pay his membership.
They fill in the fields of buddypress, click on continue in place of register, arrives on pmpro_levels , and when they tak their membership this complete the registration.
November 30, 2013 at 14:55 #7497SQadminKeymasterHi, The code bellow added to sweetdate-child/functions.php will help you. You just leave the registration process as it is and after the user registers he won’t he able to do anything until he subscribes for a membership.
COPY CODE/* Redirect user to levels page until he subscribes for a membership */ add_action( 'template_redirect', 'my_membersip_restrict' ); function my_membersip_restrict() { global $pmpro_pages, $post; if ( is_user_logged_in() && !pmpro_hasMembershipLevel() ) { if (isset($post->ID) && !in_array($post->ID, $pmpro_pages)) { wp_redirect( pmpro_url() ); } } }
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 17, 2013 at 18:29 #8446jonpaulbParticipantHi,
can you tell me where to place this bit of code? Correct me if im wrong, but this will basically combine the current two step process of “Create an Account” and take them directly to selecting a membership. If this does not solve that, is there away to do that?December 18, 2013 at 01:10 #8478AbeKeymasterHi, After registration it will take users to select a membership. As it says, the code goes to sweetdate-child/functions.php
sweetdate-child is the theme under wp-content/themes on your server accessed by FTP
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution---
@ SeventhQueen we do our best to have super happy customers. Thanks for being our customer. -
AuthorPosts
You must be logged in to reply to this topic.