Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/themes/puca/woocommerce/item-product/themes/fashion3/ |
Upload File : |
<?php global $product; $rating = wc_get_rating_html( $product->get_average_rating()); $flash_sales = isset($flash_sales) ? $flash_sales : false; $end_date = isset($end_date) ? $end_date : ''; $class = array(); $class_flash_sale = puca_tbay_class_flash_sale($flash_sales); array_push($class, $class_flash_sale); ?> <div class="product-block grid <?php puca_is_product_variable_sale(); ?>" data-product-id="<?php echo esc_attr($product->get_id()); ?>"> <div class="product-content"> <div class="block-inner"> <figure class="image"> <?php woocommerce_show_product_loop_sale_flash(); ?> <a title="<?php the_title_attribute(); ?>" href="<?php echo the_permalink(); ?>" class="product-image"> <?php /** * woocommerce_before_shop_loop_item_title hook * * @hooked woocommerce_show_product_loop_sale_flash - 10 * @hooked woocommerce_template_loop_product_thumbnail - 10 */ remove_action('woocommerce_before_shop_loop_item_title','woocommerce_show_product_loop_sale_flash', 10); do_action( 'woocommerce_before_shop_loop_item_title' ); ?> </a> <?php puca_tbay_stock_flash_sale($flash_sales); ?> <div class="groups-button-image clearfix"> <?php do_action( 'woocommerce_after_shop_loop_item' ); ?> <div class="button-wishlist"> <?php $enabled_on_loop = 'yes' == get_option( 'yith_wcwl_show_on_loop', 'no' ); if( class_exists( 'YITH_WCWL' ) || $enabled_on_loop ) { echo do_shortcode( '[yith_wcwl_add_to_wishlist]' ); } ?> </div> <?php if (class_exists('YITH_WCQV_Frontend')) { ?> <div class="quick-view"> <a href="#" class="button yith-wcqv-button" title="<?php echo esc_attr__('Quick view', 'puca'); ?>" data-product_id="<?php echo esc_attr($product->get_id()); ?>"> <span> <i class="tb-icon tb-icon-zz-quick-view"> </i> </span> </a> </div> <?php } ?> <?php if( class_exists( 'YITH_Woocompare' ) ) { ?> <?php $action_add = 'yith-woocompare-add-product'; $url_args = array( 'action' => $action_add, 'id' => $product->get_id() ); ?> <div class="yith-compare"> <a href="<?php echo wp_nonce_url( add_query_arg( $url_args ), $action_add ); ?>" title="<?php echo esc_attr__('Compare', 'puca'); ?>" class="compare" data-product_id="<?php echo esc_attr($product->get_id()); ?>"> <i class="tb-icon tb-icon-zz-compare"></i> </a> </div> <?php } ?> </div> </figure> </div> <?php do_action( 'puca_woocommerce_before_shop_loop_item_caption' ); ?> <div class="caption"> <div class="meta"> <div class="infor"> <?php do_action( 'puca_loop_item_quantity' ); ?> <h3 class="name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <?php /** * woocommerce_after_shop_loop_item_title hook * * @hooked woocommerce_template_loop_rating - 5 * @hooked woocommerce_template_loop_price - 10 */ do_action( 'woocommerce_after_shop_loop_item_title'); ?> </div> </div> <?php do_action( 'woocommerce_before_shop_loop_item_title_2' ); ?> </div> <?php do_action( 'puca_woocommerce_after_shop_loop_item_caption' ); ?> </div> </div>