problem plugin paid membership pro

This topic contains 4 replies, has 2 voices, and was last updated by  Jason 8 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9359

    ruiz
    Participant
    • 71 Posts
    @ruiz

    hi, i don´t know if this title going here…sorry…
    i try to use the plugin paid membership pro to show diferent content by level,it´s ok, but i have a problem, i use the register system of paid membership pro, and I have followed the instructions in this code

    function my_pmprorh_init() {
    	// don't break if Register Helper is not loaded
    	if ( ! function_exists( 'pmprorh_add_registration_field' ) ) {
    		return false;
    	}
    	// define the fields
    	$fields = array();
    	/*
    	$fields[] = new PMProRH_Field(
    		'field_328',                      // input name, will also be used as meta key
    		'select',                         // type of field
    		array(
    			'buddypress' => 'field_328',       // XProfile Field Name <-- !!!
    			'label'     => 'Tipo Usuario',       // custom field label
    			//'size'      => 40,              // input size
    			'options'   =>array('option_value' => 'Opcion 1','Opcion 2'),
    			'class'     => 'company',       // custom class
    			'profile'   => true,            // show in user profile
    			'required'  => true,            // make this field required
    			'levels'        => array( 1, 2 ),   // only levels 1 and 2 should have the company field
    		)
    	);
    */
    		$fields[] = new PMProRH_Field(
    		'field_328',                      // input name, will also be used as meta key
    		'text',                         // type of field
    		array(
    			'buddypress' => 'field_328',       // XProfile Field Name <-- !!!
    			'label'     => 'Tipo Usuario Seleccionado',       // custom field label
    			//'size'      => 40,              // input size
    			'value'       =>'Profesional',
    			//'class'     => 'company',       // custom class
    			'profile'   => true,            // show in user profile
    			//'required'  => true,            // make this field required
    			'readonly'  =>true,
    			'levels'        => array( 1 ),   // only levels 1 and 2 should have the company field
    		)
    	);
    		$fields[] = new PMProRH_Field(
    		'field_328',                      // input name, will also be used as meta key
    		'text',                         // type of field
    		array(
    			'field_328' => 'field_328',       // XProfile Field Name <-- !!!
    			//'label'     => 'Tipo Usuario',       // custom field label
    			//'size'      => 40,              // input size
    			'value'       =>'Estudiante',
    			'class'     => 'company',       // custom class
    			'profile'   => true,            // show in user profile
    		//	'required'  => true,            // make this field required
    			'readonly'  =>true,			
    			'levels'        => array( 2 ),   // only levels 1 and 2 should have the company field
    		)
    	);	
    	// add the fields into a new checkout_boxes are of the checkout page
    	foreach ( $fields as $field ) {
    		pmprorh_add_registration_field(
    			//'checkout_boxes',               // location on checkout pageç
    			'after_email',
    			$field                          // PMProRH_Field object
    		);
    	}
    	// that's it. see the PMPro Register Helper readme for more information and examples.
    }
    add_action( 'init', 'my_pmprorh_init' );

    and that works, but it duplicate field_328 and not appears in the xprofile page, where the user can edit and show, only show in admin view, can you help me please?

    #9360

    ruiz
    Participant
    • 71 Posts
    @ruiz

    it seems that it doesn’t synchronize with the data

    #9362

    Jason
    Moderator
    • 343 Posts
    @themoceratops
    Themosaurus Support

    Hi @ruiz,

    Unfortunately, we have no clue. 🤷‍♂️

    Please note that this issue is related with the use of Paid Memberships Pro and BuddyPress, not with the use of your theme. It’s best if you try to reach the plugin authors as they will be more informed and better suited to help you.

    To go further, we invite you to post your request on their support forums:

    Support


    https://buddypress.org/support/

    We remain available for all support requests related with the use of your theme.

    Best,

    #9364

    ruiz
    Participant
    • 71 Posts
    @ruiz

    thanks, i resolved it

    #9365

    Jason
    Moderator
    • 343 Posts
    @themoceratops
    Themosaurus Support

    Glad you were able to work it out! 🙂

    Best regards,

Hi there,

This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!

Best regards,
The Themosaurus team.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘problem plugin paid membership pro’ is closed to new replies.