Delivering across Pakistan
Delivered in 1–3 working days
Secure Payments Safe & Encrypted
/* ========================================================= SHAFA CARE PHARMACY - CLIENT PORTAL (My Account) v1 WPCode > Add Snippet > PHP Snippet > "Run Everywhere" > Active (paste WITHOUT an opening $uid, 'status' => $status, 'limit' => 1, 'paginate' => true, 'return' => 'ids', ) ); return isset( $r->total ) ? (int) $r->total : 0; }function shafa_status_class( $status ) { if ( 'completed' === $status ) { return 'completed'; } if ( 'processing' === $status ) { return 'processing'; } if ( in_array( $status, array( 'cancelled', 'failed', 'refunded' ), true ) ) { return 'cancel'; } return 'pending'; }function shafa_menu_icon( $key ) { $map = array( 'dashboard' => 'fa-solid fa-house', 'orders' => 'fa-solid fa-bag-shopping', 'downloads' => 'fa-solid fa-download', 'edit-address' => 'fa-solid fa-location-dot', 'edit-account' => 'fa-solid fa-user-pen', 'payment-methods' => 'fa-regular fa-credit-card', 'wishlist' => 'fa-regular fa-heart', 'customer-logout' => 'fa-solid fa-right-from-bracket', ); return isset( $map[ $key ] ) ? $map[ $key ] : 'fa-solid fa-circle-dot'; }function shafa_account_css() { ?> ID; $customer = new WC_Customer( $uid );$first = $customer->get_first_name(); $name = trim( $first . ' ' . $customer->get_last_name() ); if ( '' === $name ) { $name = $user->display_name; } if ( '' === $first ) { $first = $user->display_name; } $initial = strtoupper( function_exists( 'mb_substr' ) ? mb_substr( $first, 0, 1 ) : substr( $first, 0, 1 ) );/* which WooCommerce endpoint are we on? */ global $wp; $endpoint = ''; foreach ( WC()->query->get_query_vars() as $key => $var ) { if ( 'customer-logout' === $key ) { continue; } if ( isset( $wp->query_vars[ $key ] ) ) { $endpoint = $key; break; } } $is_dashboard = ( '' === $endpoint );$menu_items = wc_get_account_menu_items(); ?>