/**
  * Checks if user is logged in and appends the email input field and waitlist button HTML to text string as required
  *
  * @param string  $string HTML for Out of Stock message
  * @access public
  * @return string HTML with appropriate fields and Waitlist button appended
  * @since  1.3
  */
 public function append_waitlist_control_for_grouped_products($string)
 {
     if (!is_user_logged_in() && !WooCommerce_Waitlist_Plugin::users_must_be_logged_in_to_join_waitlist()) {
         $string .= $this->get_waitlist_email_field();
         $string .= $this->get_waitlist_control('join', 'grouped');
     } else {
         $string .= $this->get_waitlist_control('update', 'grouped');
     }
     return $string;
 }