Example #1
0
 *
 * @hooked woocommerce_template_single_title - 5
 * @hooked woocommerce_template_single_rating - 10
 * @hooked woocommerce_template_single_price - 10
 * @hooked woocommerce_template_single_excerpt - 20
 * @hooked woocommerce_template_single_add_to_cart - 30
 * @hooked woocommerce_template_single_meta - 40
 * @hooked woocommerce_template_single_sharing - 50
 */
woocommerce_template_single_title();
woocommerce_template_single_rating();
woocommerce_template_single_price();
woocommerce_template_single_excerpt();
?>
                        <div class="cart">
                            <?php 
woocommerce_template_loop_add_to_cart();
?>
                        </div>
                    <?php 
woocommerce_template_single_meta();
?>
                </div>
			</div>
		</div>
	</div>
</div><!-- #product-<?php 
the_ID();
?>
 -->
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 
    }
 /**
  * Product meta shortcode
  * Since 2.5
  * @access public
  * @return void
  */
 public function wpv_woo_product_meta_func($atts)
 {
     global $post, $woocommerce;
     ob_start();
     $product = $this->wcviews_setup_product_data($post);
     //Check if $product is set
     if (isset($product)) {
         //Let's checked if product type is set
         if (isset($product->product_type)) {
             //Let's checked if it contains sensible value
             $product_type = $product->product_type;
             if (!empty($product_type)) {
                 //Yes product types exist and set
                 if (function_exists('woocommerce_template_single_meta')) {
                     woocommerce_template_single_meta();
                     return ob_get_clean();
                 }
             }
         }
     }
 }