template_url; } $plugin_path = untrailingslashit( plugin_dir_path( __FILE__ ) ) . '/woocommerce/'; // Look within passed path within the theme - this is priority $template = locate_template( array( $template_path . $template_name, $template_name, ) ); // Modification: Get the template from this plugin, if it exists if ( ! $template && file_exists( $plugin_path . $template_name ) ) { $template = $plugin_path . $template_name; } if ( ! $template ) { $template = $_template; } return $template; } public function check_total( $fragments ) { $total = floor(WC()->cart->get_total( 'float' ) * 1000000); $fragments['#helio-total'] = ''; return $fragments; } public function add_input_total() { ?>