* @hooked woocommerce_template_loop_product_thumbnail - 10
 */
do_action('woocommerce_before_shop_loop_item_title');
?>
			        </a>
			    </div>
			</div>
			<div class="product-meta col-md-8 ">
				<h4 class="name"><a href="<?php 
the_permalink();
?>
"><?php 
the_title();
?>
</a></h4>
	           	<?php 
woocommerce_template_single_rating();
woocommerce_template_loop_price();
woocommerce_template_single_excerpt();
?>
	           	<div class="button-groups">
	                <div class="button-item clearfix">
	                    <?php 
do_action('woocommerce_after_shop_loop_item');
?>
	                </div>
	            </div>
			</div>
		</div>
	</div>
</div>
Example #2
0
    function kt_woocommerce_single_product()
    {
        ?>
        <div class="product-detail-info">
            <div class="product-section">
                <?php 
        woocommerce_template_single_meta();
        woocommerce_template_single_rating();
        woocommerce_template_single_excerpt();
        ?>
            </div>
            <div class="product-section">
                <?php 
        woocommerce_template_single_add_to_cart();
        ?>
                <div class="group-product-price">
                    <label><?php 
        esc_html_e('Price', 'kutetheme');
        ?>
</label>
                    <?php 
        woocommerce_template_single_price();
        ?>
                </div>
            </div>
            <div class="product-section">
                <?php 
        woocommerce_template_single_sharing();
        ?>
            </div>
        </div>
        <?php 
    }
Example #3
0
function yit_load_product_quick_view_ajax()
{
    if (!isset($_REQUEST['item_id'])) {
        die;
    }
    $product_id = intval($_REQUEST['item_id']);
    // set the main wp query for the product
    wp('p=' . $product_id . '&post_type=product');
    // remove parts from single product page
    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_title', 5);
    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_rating', 10);
    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_price', 10);
    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40);
    remove_action('woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50);
    remove_all_actions('woocommerce_after_single_product_summary');
    remove_all_actions('woocommerce_after_single_product');
    // change template for variable products
    if (isset($GLOBALS['yith_wccl'])) {
        $GLOBALS['yith_wccl']->obj = new YITH_WCCL_Frontend(YITH_WCCL_VERSION);
        $GLOBALS['yith_wccl']->obj->override();
    }
    //wp_head();
    while (have_posts()) {
        the_post();
        ?>

        <?php 
        woocommerce_template_single_title();
        ?>
        <?php 
        woocommerce_template_single_rating();
        ?>
        <?php 
        woocommerce_template_single_price();
        ?>

        <div class="single-product woocommerce">

            <?php 
        wc_get_template_part('content', 'single-product');
        ?>

        </div>

    <?php 
    }
    // end of the loop.
    //wp_footer();
    die;
}
 /**
  * Outputs WooCommerce product rating on single product pages.
  * Tested to work only on Single Product pages. This is not meant to be used on product loops.
  * @access public
  * @return void
  */
 public function wpv_woo_single_products_rating_func()
 {
     global $post, $woocommerce;
     ob_start();
     if (is_object($woocommerce)) {
         //WooCommerce plugin activated
         //Get products
         $product = $this->wcviews_setup_product_data($post);
         if (isset($product) && is_product()) {
             //Let's check if product_type is set
             if (isset($product->product_type)) {
                 //Set
                 $product_type = $product->product_type;
                 if (!empty($product_type)) {
                     //Defined, exist
                     //Simple or variable products
                     if (function_exists('woocommerce_template_single_rating')) {
                         //Call WooCommerce core public function on outputting single product rating on single product page
                         woocommerce_template_single_rating();
                     }
                     return ob_get_clean();
                 }
             }
         }
     }
 }
/**
 * HTML wrap start for Single page summary
 */
function ocin_lite_single_product_wrap_start_summary()
{
    ?>
	<div class="summary-top">
		<?php 
    woocommerce_breadcrumb();
    ?>
		<?php 
    woocommerce_template_single_rating();
    ?>
		<div class="clearfix"></div>
	</div><!-- /summary-top -->
	<div class="entry">
	<?php 
}