????
Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/templates/ |
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/templates/demo-template.php |
<?php /** * Template Name: test * * @package Wanderfuls WordPress Theme * @subpackage Templates */ get_header(); ?> <?php $params = array( 'p' => '3514', 'post_type' => 'product' ); $wc_query = new WP_Query($params); function tm_epo_js_loader(){ do_action( 'woocommerce_tm_epo_enqueue_scripts'); } add_action( 'wp_enqueue_scripts', 'tm_epo_js_loader' ); function my_custom_function(){ do_action("woocommerce_tm_epo",3514); } add_action( 'woocommerce_before_add_to_cart_button','my_custom_function'); if($_SERVER['REMOTE_ADDR'] == '210.56.98.46'){ } ?> <?php if ($wc_query->have_posts()) : ?> <?php do_action( 'woocommerce_before_main_content' ); ?> <?php while ($wc_query->have_posts()) : $wc_query->the_post(); ?> <?php woocommerce_get_template_part( 'content', 'single-product' ); ?> <?php //the_title(); ?> <?php //the_content(); ?> <?php endwhile; ?> <?php do_action( 'woocommerce_after_main_content' ); ?> <?php /** * woocommerce_sidebar hook. * * @hooked woocommerce_get_sidebar - 10 */ do_action( 'woocommerce_sidebar' ); ?> <?php wp_reset_postdata(); ?> <?php else: ?> <p><?php _e( 'No Product' ); ?></p> <?php endif; ?> <?php get_footer(); ?>