INTERNATIONAL INSTITUTE OF YOGA CONSCIOUSNESS (IIYC)

Your cart is currently empty.

Home

membership_level = $wpdb->get_row("SELECT l.id AS ID, l.name AS name FROM {$wpdb->pmpro_membership_levels} AS l JOIN {$wpdb->pmpro_memberships_users} AS mu ON (l.id = mu.membership_id) WHERE mu.user_id = " . $user->ID . " LIMIT 1");*/ $user->membership_level = pmpro_getMembershipLevelForUser($user->ID);$levels = $wpdb->get_results( "SELECT * FROM {$wpdb->pmpro_membership_levels}", OBJECT );if(!$levels) return ""; ?>

ID; $user_name= $user->user_login; /*$res = $wpdb->get_results( "SELECT * FROM wp_health_assesment WHERE user_id = $user_id ORDER BY `wp_health_assesment`.`user_id` DESC ");*/$res = $wpdb->get_results( "SELECT wp_health_assesment.*,wp_pmpro_memberships_users.membership_id, wp_posts.post_title FROM wp_health_assesment LEFT JOIN wp_pmpro_memberships_users ON wp_health_assesment.user_id = wp_pmpro_memberships_users.user_id INNER JOIN wp_posts ON wp_health_assesment.course_id = wp_posts.id WHERE wp_pmpro_memberships_users.user_id = $user_id ORDER BY wp_health_assesment.user_id DESC"); ?>$val) { ?>suffer_from_any != '' ){ ?>advice_from_doctor != '' ){ ?>
Course namepost_title ;?>
Question Are you physically and mentally fit to perform light exercises and Yoga
Answer physically_and_mentally_fit ;?>
Question Do you suffer from any of the following?
Answer suffer_from_any ;?>
Question You need to seek advice from your Doctor to perform light physical exercises and breathing exercises and Yoga.
Answer advice_from_doctor ;?> I have taken the advice from Doctor to undertake the yoga program and I wish to enroll

membership_level = pmpro_getMembershipLevelForUser($user->ID); $end_date = (!empty($user->membership_level) && !empty($user->membership_level->enddate)); // Returned as UTC timestamp // Convert UTC to local time if ( $end_date ) { $user->membership_level->enddate = strtotime( $wp_tz, $user->membership_level->enddate ); }//some vars for the dates $current_day = date_i18n("j", current_time('timestamp')); if($end_date) $selected_expires_day = date_i18n("j", $user->membership_level->enddate); else $selected_expires_day = $current_day; $current_month = date_i18n("M", current_time('timestamp')); if($end_date) $selected_expires_month = date_i18n("m", $user->membership_level->enddate); else $selected_expires_month = date_i18n("m"); $current_year = date_i18n("Y", current_time('timestamp')); if($end_date) $selected_expires_year = date_i18n("Y", $user->membership_level->enddate); else $selected_expires_year = (int)$current_year + 1; ?>ID, true );if( !empty( $tospage_id ) || !empty( $consent_log ) ) { ?>
ID);//we tweak the initial payment here so the text here effectively shows the recurring amount if(!empty($membership_values)) { $membership_values->original_initial_payment = $membership_values->initial_payment; $membership_values->initial_payment = $membership_values->billing_amount; }if(empty($membership_values) || pmpro_isLevelFree($membership_values)) { if(!empty($membership_values->original_initial_payment) && $membership_values->original_initial_payment > 0) echo "Paid " . pmpro_formatPrice($membership_values->original_initial_payment) . "."; else _e('Not paying.', 'paid-memberships-pro' ); } else { echo pmpro_getLevelCost($membership_values, true, true); } ?>
style="display: none;"> on
getLastMemberOrder($user_ID); if(!empty($order) && !empty($order->id)) $r = $order->cancel(); } //remove filter after ward if(empty($_REQUEST['cancel_subscription'])) remove_filter('pmpro_cancel_previous_subscriptions', 'pmpro_cancel_previous_subscriptions_false'); } //expiration change if(!empty($_REQUEST['expires'])) { //update the expiration date $expiration_date = intval($_REQUEST['expires_year']) . "-" . str_pad(intval($_REQUEST['expires_month']), 2, "0", STR_PAD_LEFT) . "-" . str_pad(intval($_REQUEST['expires_day']), 2, "0", STR_PAD_LEFT); $sqlQuery = "UPDATE $wpdb->pmpro_memberships_users SET enddate = '" . $expiration_date . "' WHERE status = 'active' AND membership_id = '" . intval($_REQUEST['membership_level']) . "' AND user_id = '" . $user_ID . "' LIMIT 1"; if($wpdb->query($sqlQuery)) $expiration_changed = true; } elseif(isset($_REQUEST['expires'])) { //already blank? have to check for null or '0000-00-00 00:00:00' or '' here. $sqlQuery = "SELECT user_id FROM $wpdb->pmpro_memberships_users WHERE (enddate IS NULL OR enddate = '' OR enddate = '0000-00-00 00:00:00') AND status = 'active' AND user_id = '" . $user_ID . "' LIMIT 1"; $blank = $wpdb->get_var($sqlQuery); if(empty($blank)) { //null out the expiration $sqlQuery = "UPDATE $wpdb->pmpro_memberships_users SET enddate = NULL WHERE status = 'active' AND membership_id = '" . intval($_REQUEST['membership_level']) . "' AND user_id = '" . $user_ID . "' LIMIT 1"; if($wpdb->query($sqlQuery)) $expiration_changed = true; } } //emails if there was a change if(!empty($level_changed) || !empty($expiration_changed)) { //email to admin $pmproemail = new PMProEmail(); if(!empty($expiration_changed)) $pmproemail->expiration_changed = true; $pmproemail->sendAdminChangeAdminEmail(get_userdata($user_ID)); //send email if(!empty($_REQUEST['send_admin_change_email'])) { //email to member $pmproemail = new PMProEmail(); if(!empty($expiration_changed)) $pmproemail->expiration_changed = true; $pmproemail->sendAdminChangeEmail(get_userdata($user_ID)); } } } add_action( 'show_user_profile', 'pmpro_membership_level_profile_fields' ); add_action( 'edit_user_profile', 'pmpro_membership_level_profile_fields' ); add_action( 'personal_options_update', 'pmpro_membership_level_profile_fields_update' ); add_action( 'edit_user_profile_update', 'pmpro_membership_level_profile_fields_update' );