{"id":76215,"date":"2026-06-29T13:29:18","date_gmt":"2026-06-29T18:29:18","guid":{"rendered":"https:\/\/learn.gthu.org\/?page_id=76215"},"modified":"2026-06-29T15:47:49","modified_gmt":"2026-06-29T20:47:49","slug":"group-purchase","status":"publish","type":"page","link":"https:\/\/learn.gthu.org\/es\/group-purchase\/","title":{"rendered":"Group Purchase"},"content":{"rendered":"\t\t<div class=\"gthu-gp-form\">\n\t\t\t<h2 class=\"gthu-gp-heading\">Order Group Course Access<\/h2>\n\t\t\t<p class=\"gthu-gp-sub\">Set the number of seats for each course. Buy for your whole team in one transaction.<\/p>\n\n\t\t\t<form method=\"post\" class=\"gthu-gp-order\" id=\"gthu-gp-order\">\n\t\t\t\t<input type=\"hidden\" id=\"gthu_gp_order_nonce\" name=\"gthu_gp_order_nonce\" value=\"c266ccc391\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/es\/wp-json\/wp\/v2\/pages\/76215\" \/>\n\t\t\t\t\t\t\t\t\t<div class=\"gthu-gp-org\">\n\t\t\t\t\t\t<label for=\"gthu_org_name\">Organization \/ Company name<\/label>\n\t\t\t\t\t\t<input type=\"text\" name=\"gthu_org_name\" id=\"gthu_org_name\" placeholder=\"e.g. Houston ISD\" \/>\n\t\t\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t<div class=\"gthu-gp-list\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"gthu-gp-row\" data-price=\"75\" data-bundle=\"1\">\n\t\t\t\t\t\t\t<div class=\"gthu-gp-thumb\"><img decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/learn.gthu.org\/wp-content\/uploads\/2024\/06\/mental-health-coach-150x150.jpg?wsr\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Image of a young woman sitting in a conversation with another individual, appearing engaged and supportive. This image represents the role of a Mental Health Coach, highlighting the importance of equipping individuals with the skills to compassionately respond to those in mental distress, uphold ethics and confidentiality, and serve as a valuable resource within their community. The training includes evidence-based practices and specialty courses to guide coaches in supporting mental health recovery and wellness.\" srcset=\"https:\/\/learn.gthu.org\/wp-content\/uploads\/2024\/06\/mental-health-coach-150x150.jpg 150w, https:\/\/learn.gthu.org\/wp-content\/uploads\/2024\/06\/mental-health-coach-300x300.jpg 300w, https:\/\/learn.gthu.org\/wp-content\/uploads\/2024\/06\/mental-health-coach-100x100.jpg 100w, https:\/\/learn.gthu.org\/wp-content\/uploads\/2024\/06\/mental-health-coach.jpg 500w\" sizes=\"(max-width: 150px) 100vw, 150px\" \/><\/div>\n\t\t\t\t\t\t\t<div class=\"gthu-gp-info\">\n\t\t\t\t\t\t\t\t<span class=\"gthu-gp-name\">Mental Health Coach<\/span>\n\t\t\t\t\t\t\t\t<span class=\"gthu-gp-price\"><span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>75.00<\/span> per seat<\/span>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gthu-gp-specialty-label\" data-extra=\"50\">\n\t\t\t\t\t\t\t\t\t\t<span class=\"gthu-gp-specialty-title\">Choose specialties (first included, each additional adds to the price)<\/span>\n\t\t\t\t\t\t\t\t\t\t<div class=\"gthu-gp-specialty-options\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"gthu-gp-specialty-opt\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" class=\"gthu-gp-specialty-cb\" name=\"gthu_specialty[40574][]\" value=\"11\" \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span>Addiction and Behavioral Health Disorders<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"gthu-gp-specialty-opt\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" class=\"gthu-gp-specialty-cb\" name=\"gthu_specialty[40574][]\" value=\"14\" \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span>Aging and Elder Care<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"gthu-gp-specialty-opt\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" class=\"gthu-gp-specialty-cb\" name=\"gthu_specialty[40574][]\" value=\"17\" \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span>Child and Adolescent Mental Health<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"gthu-gp-specialty-opt\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" class=\"gthu-gp-specialty-cb\" name=\"gthu_specialty[40574][]\" value=\"20\" \/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span>Trauma<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<\/label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<p class=\"gthu-gp-specialty-hint\"><\/p>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"gthu-gp-qty\">\n\t\t\t\t\t\t\t\t<button type=\"button\" class=\"gthu-gp-step gthu-gp-minus\" aria-label=\"Decrease\">&minus;<\/button>\n\t\t\t\t\t\t\t\t<input type=\"number\" name=\"gthu_seats[40574]\" class=\"gthu-gp-seat-input\" value=\"0\" min=\"0\" step=\"1\" inputmode=\"numeric\" \/>\n\t\t\t\t\t\t\t\t<button type=\"button\" class=\"gthu-gp-step gthu-gp-plus\" aria-label=\"Increase\">+<\/button>\n\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t<div class=\"gthu-gp-line-total\"><span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>0.00<\/span><\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\n\t\t\t\t<div class=\"gthu-gp-footer\">\n\t\t\t\t\t<div class=\"gthu-gp-grand\">\n\t\t\t\t\t\t<span class=\"gthu-gp-grand-label\">Total<\/span>\n\t\t\t\t\t\t<span class=\"gthu-gp-grand-value\"><span class=\"woocommerce-Price-amount amount\"><span class=\"woocommerce-Price-currencySymbol\">&#036;<\/span>0.00<\/span><\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t<button type=\"submit\" class=\"gthu-gp-submit button\">Continue to checkout<\/button>\n\t\t\t\t<\/div>\n\t\t\t<\/form>\n\t\t<\/div>\n\n\t\t<script>\n\t\t( function () {\n\t\t\tvar form = document.getElementById( 'gthu-gp-order' );\n\t\t\tif ( ! form ) { return; }\n\t\t\tvar currency = \"$\";\n\t\t\tvar extraLabel = \"incl. %1$d extra specialty (+%2$s each)\";\n\t\t\tfunction fmt( n ) { return currency + n.toFixed( 2 ).replace( \/\\B(?=(\\d{3})+(?!\\d))\/g, ',' ); }\n\n\t\t\t\/\/ Per-seat price for a row: base + extraCost * max(0, checked - 1).\n\t\t\tfunction seatPrice( row ) {\n\t\t\t\tvar base  = parseFloat( row.getAttribute( 'data-price' ) ) || 0;\n\t\t\t\tvar box   = row.querySelector( '.gthu-gp-specialty-label' );\n\t\t\t\tif ( ! box ) { return base; }\n\t\t\t\tvar extra = parseFloat( box.getAttribute( 'data-extra' ) ) || 0;\n\t\t\t\tvar checked = row.querySelectorAll( '.gthu-gp-specialty-cb:checked' ).length;\n\t\t\t\tvar paid    = Math.max( 0, checked - 1 );\n\t\t\t\treturn base + ( extra * paid );\n\t\t\t}\n\n\t\t\tfunction recalc() {\n\t\t\t\tvar grand = 0;\n\t\t\t\tform.querySelectorAll( '.gthu-gp-row' ).forEach( function ( row ) {\n\t\t\t\t\tvar input = row.querySelector( '.gthu-gp-seat-input' );\n\t\t\t\t\tvar qty   = parseInt( input.value, 10 ) || 0;\n\t\t\t\t\tif ( qty < 0 ) { qty = 0; input.value = 0; }\n\t\t\t\t\tvar per   = seatPrice( row );\n\t\t\t\t\tvar line  = per * qty;\n\t\t\t\t\tgrand += line;\n\t\t\t\t\trow.querySelector( '.gthu-gp-line-total' ).textContent = fmt( line );\n\t\t\t\t\trow.classList.toggle( 'gthu-gp-active', qty > 0 );\n\n\t\t\t\t\t\/\/ Update the per-row hint about extra specialties.\n\t\t\t\t\tvar box   = row.querySelector( '.gthu-gp-specialty-label' );\n\t\t\t\t\tvar hint  = row.querySelector( '.gthu-gp-specialty-hint' );\n\t\t\t\t\tif ( box && hint ) {\n\t\t\t\t\t\tvar extra   = parseFloat( box.getAttribute( 'data-extra' ) ) || 0;\n\t\t\t\t\t\tvar checked = row.querySelectorAll( '.gthu-gp-specialty-cb:checked' ).length;\n\t\t\t\t\t\tvar paid    = Math.max( 0, checked - 1 );\n\t\t\t\t\t\tif ( paid > 0 ) {\n\t\t\t\t\t\t\thint.textContent = extraLabel\n\t\t\t\t\t\t\t\t.replace( '%1$d', paid )\n\t\t\t\t\t\t\t\t.replace( '%2$s', fmt( extra ) ) + ' \u2014 ' + fmt( per ) + ' per seat';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\thint.textContent = '';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tform.querySelector( '.gthu-gp-grand-value' ).textContent = fmt( grand );\n\t\t\t}\n\n\t\t\tform.addEventListener( 'click', function ( e ) {\n\t\t\t\tvar btn = e.target.closest( '.gthu-gp-step' );\n\t\t\t\tif ( ! btn ) { return; }\n\t\t\t\tvar input = btn.parentNode.querySelector( '.gthu-gp-seat-input' );\n\t\t\t\tvar qty = parseInt( input.value, 10 ) || 0;\n\t\t\t\tqty = btn.classList.contains( 'gthu-gp-plus' ) ? qty + 1 : Math.max( 0, qty - 1 );\n\t\t\t\tinput.value = qty;\n\t\t\t\trecalc();\n\t\t\t} );\n\t\t\tform.addEventListener( 'input', function ( e ) {\n\t\t\t\tif ( e.target.classList.contains( 'gthu-gp-seat-input' ) ) { recalc(); }\n\t\t\t} );\n\t\t\tform.addEventListener( 'change', function ( e ) {\n\t\t\t\tif ( e.target.classList.contains( 'gthu-gp-specialty-cb' ) ) {\n\t\t\t\t\te.target.closest( '.gthu-gp-row' ).classList.remove( 'gthu-gp-needs-specialty' );\n\t\t\t\t\trecalc();\n\t\t\t\t}\n\t\t\t} );\n\t\t\tform.addEventListener( 'submit', function ( e ) {\n\t\t\t\tvar bad = false;\n\t\t\t\tform.querySelectorAll( '.gthu-gp-row[data-bundle=\"1\"]' ).forEach( function ( row ) {\n\t\t\t\t\tvar input   = row.querySelector( '.gthu-gp-seat-input' );\n\t\t\t\t\tvar qty     = parseInt( input.value, 10 ) || 0;\n\t\t\t\t\tvar checked = row.querySelectorAll( '.gthu-gp-specialty-cb:checked' ).length;\n\t\t\t\t\tif ( qty > 0 && checked < 1 ) {\n\t\t\t\t\t\trow.classList.add( 'gthu-gp-needs-specialty' );\n\t\t\t\t\t\tbad = true;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\tif ( bad ) {\n\t\t\t\t\te.preventDefault();\n\t\t\t\t\talert( \"Please choose at least one specialty for each course you are buying seats for.\" );\n\t\t\t\t}\n\t\t\t} );\n\t\t\trecalc();\n\t\t} )();\n\t\t<\/script>\n\t\t\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":28574,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_uag_custom_page_level_css":"","footnotes":""},"class_list":["post-76215","page","type-page","status-publish","hentry"],"acf":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"uo_course_image_size":false,"post-thumbnail":false,"gform-image-choice-sm":false,"gform-image-choice-md":false,"gform-image-choice-lg":false,"woocommerce_thumbnail":false,"woocommerce_single":false,"woocommerce_gallery_thumbnail":false},"uagb_author_info":{"display_name":"molufemi","author_link":"https:\/\/learn.gthu.org\/es\/author\/molufemi\/"},"uagb_comment_info":0,"uagb_excerpt":null,"_links":{"self":[{"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/pages\/76215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/users\/28574"}],"replies":[{"embeddable":true,"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/comments?post=76215"}],"version-history":[{"count":2,"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/pages\/76215\/revisions"}],"predecessor-version":[{"id":76233,"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/pages\/76215\/revisions\/76233"}],"wp:attachment":[{"href":"https:\/\/learn.gthu.org\/es\/wp-json\/wp\/v2\/media?parent=76215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}