SEIA Member Directory

SEIA Members represent every aspect and vertical within the solar industry, from manufacturers and project developers, to installers and financiers. Browse the list below to find a SEIA member!

    Make a Difference in Clean Energy Policy

    Become a SEIA member today

    '); // Clear pagination $('#pagination').empty(); if(page != ''){ $('html, body').animate({ scrollTop: $('.filter-section').offset().top - 100 }, 200); } // Abort the last request if it exists if (lastRequest) { lastRequest.abort(); } var searchQuery = $('#search-input').val(); var companyMinorityOwnership = $('#company_minority_ownership').val(); var companyOwnership = $('#company_ownership').val(); var usOperationState = $('#us_operation_state').val(); var diverseBusinessDesignation = $('#diverse_business_designation').val(); var businessType = $('#business_type').val(); var orgState = $('#org_state').val(); lastRequest = $.ajax({ url: ajaxurl, type: 'POST', data: { action: 'seia_get_sf_organizations', page: page, nonce: nonce, listType: 'directory', pageSize: pageSize, searchQuery: searchQuery, companyMinorityOwnership: companyMinorityOwnership, companyOwnership: companyOwnership, usOperationState: usOperationState, diverseBusinessDesignation: diverseBusinessDesignation, businessType: businessType, orgState: orgState, }, success: function(response) { isFetching = false; // Reset the fetching flag // Update totalOrgs based on the response totalOrgs = response.totalSize; // Handle response, e.g., update UI with organizations if (response && response.data.records && response.data.records.length > 0) { // Clear existing organizations $('#organizations-list').empty(); // Loop through organizations and generate HTML for each record response.data.records.forEach(function(org) { var location = ''; if (org.ShippingCity && org.ShippingState) { location = org.ShippingCity + ', ' + org.ShippingState; } else if (org.ShippingCity) { location = org.ShippingCity; } else if (org.ShippingState) { location = org.ShippingState; } var html = '
  • ' + '' + location + '' + '

    ' + org.Name + '

    ' + '

    ' + (org.Primary_Category__c ? org.Primary_Category__c : '') + '

    ' + '
    ' + (org.Company_Description__c ? org.Company_Description__c : '') + '
    ' + '

    ' + (org.Company_is_minority_owned__c ? 'Minority Ownership / '+ org.Company_is_minority_owned__c + '
    ' : '') + (org.Company_s_certifying_agencies__c ? 'Certifying Agencies: '+ org.Company_s_certifying_agencies__c + '
    ' : '') + location + '

    ' + '
  • '; $('#organizations-list').append(html); }); // Update pagination createPagination(totalOrgs, page); } else { // Handle no organizations found $('#organizations-list').html('
  • No organizations found.
  • '); } }, error: function(xhr, status, error) { console.error(error); } }); } // Handle search input keyup with debounce $('#search-input').on('keyup', function() { clearTimeout(typingTimer); typingTimer = setTimeout(function() { currentPage = 1; // Reset to first page fetchOrganizations(currentPage); }, doneTypingInterval); }); // Handle filter dropdown change $('.org-dd-filter').on('change', function() { currentPage = 1; // Reset to first page fetchOrganizations(currentPage); }); // Clear the timeout on keydown to debounce the keyup event $('#search-input').on('keydown', function() { clearTimeout(typingTimer); }); // Function to create pagination // function createPagination(totalSize, currentPage) { // var totalPages = Math.ceil(totalSize / pageSize); // if (totalPages <= 1) { // $('#pagination').empty(); // Clear pagination if there's only one page or no pages // return; // } // var paginationHtml = ''; // $('#pagination').html(paginationHtml); // } function createPagination(totalSize, currentPage) { var totalPages = Math.ceil(totalSize / pageSize); if (totalPages <= 1) { $('#pagination').empty(); // Clear pagination if there's only one page or no pages return; } var paginationHtml = ''; $('#pagination').html(paginationHtml); } // Initial fetch fetchOrganizations(currentPage); // Ensure event listener is attached only once $(document).off('click', '.page-numbers').on('click', '.page-numbers', function(e) { e.preventDefault(); var page = parseInt($(this).data('page')); if (!isNaN(page)) { currentPage = page; fetchOrganizations(currentPage); } }); }); /*jQuery(document).ready(function($) { var currentPage = 1; var totalPages; var loading = false; function orgloadPosts(page) { var searchData = $('#search-org').val(); var company_minority_ownership = $('#company_minority_ownership').val(); var company_ownership = $('#company_ownership').val(); var us_operation_state = $('#us_operation_state').val(); var diverse_business_designation = $('#diverse_business_designation').val(); if (loading) return; loading = true; $.ajax({ url: ajaxurl, type: 'post', data: { action: 'seia_organization_load_posts', page: page, search: searchData, company_minority_ownership: company_minority_ownership, company_ownership: company_ownership, us_operation_state: us_operation_state, diverse_business_designation: diverse_business_designation }, beforeSend: function() { $('#results-org').html('
    '); }, success: function(response) { $('#results-org').html(response.posts); $('#pagination-org').html(response.pagination); totalPages = response.total_pages; }, complete: function() { loading = false; } }); } orgloadPosts(currentPage); $(document).on('click', '.pagination li a', function(e) { e.preventDefault(); var page = $(this).attr('href').split('paged=')[1]; currentPage = parseInt(page); orgloadPosts(currentPage); }); $('#search, #company_minority_ownership, #company_ownership, #us_operation_state, #diverse_business_designation').on('change keyup', function() { currentPage = 1; orgloadPosts(currentPage); }); });*/