A client needed to add her SSL Logo Seal to the checkout page. The problem is that the code she was given had also a JS part, together with a bunch of HTML.
Unfortunately you can’t just copy and paste JavaScript in the checkout page… you need a workaround!
WooCommerce: how to add HTML/JS to the checkout page
PHP Snippet: Display a Script @ Checkout Page – WooCommerce
/** * @snippet Display script @ Checkout - WooCommerce * @how-to Get CustomizeWoo.com FREE * @sourcecode https://businessbloomer.com/?p=532 * @author Rodolfo Melogli * @testedwith WooCommerce 3.5.1 * @donate $9 https://businessbloomer.com/bloomer-armada/ */ add_action( 'woocommerce_after_checkout_form', 'bbloomer_add_jscript_checkout'); function bbloomer_add_jscript_checkout() { echo '<table width=110 border=0 cellspacing=0 cellpadding=0 title="CLICK TO VERIFY: This site uses a GlobalSign SSL Certificate to secure your personal information." style="border:0" ><tr><td style="border:0" ><span id="ss_img_wrapper_gmogs_image_110-45_en_dblue"><a href="https://www.globalsign.com/" target=_blank title="GlobalSign Site Seal" rel="nofollow"><img alt="SSL" border=0 id="ss_img" src="//seal.globalsign.com/SiteSeal/images/gmogs_image_110-45_en_dblue.png"></a></span><script type="text/javascript" src="//seal.globalsign.com/SiteSeal/gmogs_image_110-45_en_dblue.js"></script></td></tr></table>'; }