function wpb_wl_hook_quickview_content() { global $post, $woocommerce, $product; ?> <div id="wpb_wl_quick_view_<?php echo get_the_id(); ?> " class="mfp-hide mfp-with-anim wpb_wl_quick_view_content wpb_wl_clearfix"> <div class="wpb_wl_images"> <?php if (has_post_thumbnail()) { $image_title = esc_attr(get_the_title(get_post_thumbnail_id())); $image_link = wp_get_attachment_url(get_post_thumbnail_id()); $image = get_the_post_thumbnail($post->ID, apply_filters('single_product_large_thumbnail_size', 'shop_single'), array('title' => $image_title)); $attachment_count = count($product->get_gallery_attachment_ids()); if ($attachment_count > 0) { $gallery = '[product-gallery]'; } else { $gallery = ''; } echo apply_filters('woocommerce_single_product_image_html', sprintf('<a href="%s" itemprop="image" class="woocommerce-main-image zoom" title="%s" data-rel="prettyPhoto' . $gallery . '">%s</a>', $image_link, $image_title, $image), $post->ID); } else { echo apply_filters('woocommerce_single_product_image_html', sprintf('<img src="%s" alt="%s" />', wc_placeholder_img_src(), __('Placeholder', 'woocommerce-lightbox')), $post->ID); } ?> </div> <div class="wpb_wl_summary"> <!-- Product Title --> <h2 class="wpb_wl_product_title"><?php the_title(); ?> </h2> <!-- Product Price --> <?php if ($price_html = $product->get_price_html()) { ?> <span class="price wpb_wl_product_price"><?php echo $price_html; ?> </span> <?php } ?> <!-- Product short description --> <?php woocommerce_template_single_excerpt(); ?> <!-- Product cart link --> <?php woocommerce_template_single_add_to_cart(); ?> </div> </div> <?php }
/** * Create the excerpt for embedded products - we want to add the buy button to it. * * @since 2.4.11 * @param string $excerpt Embed short description. * @return string */ public static function the_excerpt($excerpt) { global $post; // Make sure we're only affecting embedded products. if (self::is_embedded_product()) { if (!empty($post->post_excerpt)) { ob_start(); woocommerce_template_single_excerpt(); $excerpt = ob_get_clean(); } // Add the button. $excerpt .= self::product_buttons(); } return $excerpt; }
/** * Create the excerpt for embedded products - we want to add the buy button to it. * * @since 2.4.11 * @param string $excerpt Embed short description. * @return string */ public static function the_excerpt($excerpt) { global $post; // Get product. $_product = wc_get_product(get_the_ID()); // Make sure we're only affecting embedded products. if (self::is_embedded_product()) { echo '<p><span class="wc-embed-price">' . $_product->get_price_html() . '</span></p>'; if (!empty($post->post_excerpt)) { ob_start(); woocommerce_template_single_excerpt(); $excerpt = ob_get_clean(); } // Add the button. $excerpt .= self::product_buttons(); } return $excerpt; }
* @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>
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 }
function thb_single_product_summary() { ?> <div class="thb-product-header"> <?php woocommerce_template_single_title(); woocommerce_template_loop_rating(); woocommerce_template_single_price(); ?> </div> <div class="thb-product-excerpt thb-text"> <?php woocommerce_template_single_excerpt(); ?> </div> <?php }
</div> <h3><?php the_title(); ?> </h3> <?php echo $product->get_price_html(); ?> <!--</a>--> <div class="excerpt"> <?php woocommerce_template_single_excerpt($loop->post, $product); ?> </div> <?php woocommerce_template_loop_add_to_cart($loop->post, $product); ?> <i class="fa fa-chevron-down"></i> <div class="active-arrow-bottom"></div> </div> </li><!-- /span3 --> <?php } ?>
function yit_shop_product_description() { if (yit_get_option('shop-product-description-on-list') == 'yes') { echo '<div class="product-description">'; woocommerce_template_single_excerpt(); echo '</div>'; } }
function yit_shop_grid_description() { $description_class = ''; if (yit_get_option('shop-view-show-description')) { $description_class .= 'show-on-list'; } if (yit_get_option('shop-classic-show-description')) { $description_class .= 'show-on-classic'; } if (!empty($description_class)) { $description_class = ' ' . $description_class; } ?> <div class="product-description<?php echo $description_class; ?> "> <?php woocommerce_template_single_excerpt(); ?> </div><?php }