Give a message that you must be logged in with member account.
) {
$this->memberID = $this->config['loggedInUser']['contactUser']['ref_dest'];
} else {
- // throw an error
- wp_die('Not finding any account for you!');
+ $option = 'noaccount';
}
// Check if there's a logged in user who is locked to their own entity.
$account_status = apply_filters( 'glm-billing-get-account-status', '', $accountID );
switch ( $option ) {
+ case 'noaccount':
+ $view = 'noaccount';
+ break;
case 'renew':
// TODO: only the renew form if the member is not active
if ( $account_status == 'Active' ) {
--- /dev/null
+<h2>No account found!</h2>
+<p>You must be logged in as a member.</p>