protected function print_tmpl() { if ($located = wc_pos_locate_template('print/receipt.php')) { echo '<script type="text/x-handlebars-template" id="tmpl-print-receipt">'; include $located; echo '</script>'; } }
<tr> <th><?php _e('Receipt Template', 'woocommerce-pos'); ?> </th> <td> <a href="<?php esc_attr_e(wc_pos_url('#print')); ?> " target="_blank" class="button"> <?php _e('View Sample Receipt', 'woocommerce-pos'); ?> </a> <?php printf(__('<strong class="red">Template path:</strong> %s', 'woocommerce-pos'), '<code style="font-size: 11px">' . wc_pos_locate_template('print/receipt.php') . '</code>'); ?> </td> </tr> <tr> <th><?php _e('Legacy Server Support', 'woocommerce-pos'); ?> </th> <td> <?php $toggle = get_option('woocommerce_pos_emulateHTTP') === '1'; ?> <a href="#" data-action="legacy-<?php echo $toggle ? 'disable' : 'enable';