• Resolved salvoroma

    (@salvoroma)


    Hello, Is it possible to make required the last name field on checkout page for delivery service?

    • This topic was modified 6 years, 1 month ago by salvoroma.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Kshirod Patel

    (@kshirod-patel)

    Hello,

    You can use this in your active theme functions.php file to make last name required

    add_filter( 'rpress_purchase_form_required_fields', 'rpress_make_required_fields' );
    
    function rpress_make_required_fields( ) {
    	$required_fields['rpress_last'] = array(
        'error_id'      => 'invalid_last_name',
        'error_message' =>  __('Please enter your last name', 'restropress')
      );
      return $required_fields;
    }
    Thread Starter salvoroma

    (@salvoroma)

    Thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘last name field required’ is closed to new replies.