• Resolved przembar

    (@przembar)


    I cannot find option for making simple process:
    1. User register on site
    2. The information about registration confirmation link send to mail appear
    3. User navigate to mailbox with confirmation link
    4. After clicking confirmation link in mail he is redirected to the site and his registration is confirmed and finished
    Is that possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • @przembar,

    At this moment LifterLMS does not have a confirmation stage when users register using open-registration.

    This is something that we do get requests for from time to time but they’re few and far between since most users don’t actually use open registration and instead mitigate spam by selling courses — not many spammers are going to pay for something.

    I know it causes and issue with free courses and open registration but I don’t have a solution at this moment.

    My apologies,

    Thread Starter przembar

    (@przembar)

    @thomasplevy
    Thanks for replay
    For open registration I made this somehow work by requesting voucher code what can be retrieved by signup through subscription to site.
    I having a problem with free course registration – how I can add restriction like for open registration where user need to poses voucher code to pass this registration?

    @przembar,

    Under your LifterLMS -> Settings -> Accounts you’ll see a few options related to which fields display on Open Registration.

    Find the voucher field and make it “Required” and then users can ONLY register if they do so with a valid voucher!

    Hope that helps,

    Thread Starter przembar

    (@przembar)

    @thomasplevy
    For Open Registration it is working fine
    I would add it to free checkout (https://lifterlms.com/docs/checkout-free-access-plans/)
    I made the code what allow me to do that:
    After below code in class.llms.person.handler.php

    $voucher = get_option( 'lifterlms_voucher_field_' . $screen . '_visibility', '' );
            if ( 'registration' === $screen && 'hidden' !== $voucher ) {
    
                $toggleable = apply_filters( 'llms_voucher_toggleable', ( 'required' === $voucher ) ? false : true );
                $voucher_label = __( 'Have a voucher?', 'lifterlms' );
                if ( $toggleable ) {
                    $voucher_label = '<a class="llms-voucher-toggle" id="llms-voucher-toggle" href="#">' . $voucher_label . '</a>';
                    add_action( 'wp_print_footer_scripts', array( __CLASS__, 'voucher_toggle_script' ) );
                }
    
                $fields[] = array(
                    'columns' => 12,
                    'id' => self::$meta_prefix . 'voucher',
                    'label' => $voucher_label,
                    'last_column' => true,
                    'placeholder' => __( 'Voucher Code', 'lifterlms' ),
                    'required' => ( 'required' === $voucher ) ? true : false,
                    'style' => $toggleable ? 'display: none;' : '',
                    'type'  => 'text',
                );
            }

    I added:

    if ( 'checkout' === $screen && !$uid) {
    
    			$toggleable = apply_filters( 'llms_voucher_toggleable', ( 'required' === 'required' ) ? false : true );
    			$voucher_label = __( '<p>Custom text</p>', 'lifterlms' );
    			if ( $toggleable ) {
    				$voucher_label = '<a class="llms-voucher-toggle" id="llms-voucher-toggle" href="#">' . $voucher_label . '</a>';
    				add_action( 'wp_print_footer_scripts', array( __CLASS__, 'voucher_toggle_script' ) );
    			}
    
    			$fields[] = array(
    				'columns' => 12,
    				'id' => self::$meta_prefix . 'voucher',
    				'label' => $voucher_label,
    				'last_column' => true,
    				'placeholder' => __( 'Voucher Code', 'lifterlms' ),
    				'required' => true,
    				'style' => $toggleable ? 'display: none;' : '',
    				'type'  => 'text',
    			);
    
    		}

    I just wonder how to inject it by LifterLMS Customizations

    @przembar,

    I’m sorry what are you changing here and why?

    I’m not sure I’m following the customizations you’re trying to make.

    Additionally you can’t copy / paste class functions to override them, instead *filter the return* by using the filters found in the function you’re trying to modify!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Registering with confirmation link’ is closed to new replies.