Advertisement
Guest User

Untitled

a guest
Feb 14th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.01 KB | None | 0 0
  1.    <div class="product-wrap">
  2.  
  3.         <?php
  4.         global $product;
  5.         global $product_hover_alt_image;
  6.  
  7.         $product_second_image = null;
  8.         if($product_hover_alt_image == '1') {
  9.  
  10.             $product_attach_ids = $product->get_gallery_attachment_ids();
  11.  
  12.             if ( isset($product_attach_ids[0]) )
  13.                 $product_second_image = wp_get_attachment_image($product_attach_ids[0], 'shop_catalog', false, array( 'class' => 'hover-gallery-image' ));
  14.         }
  15.  
  16.         echo  woocommerce_get_product_thumbnail() . $product_second_image; ?>
  17.  
  18.         <div class="bg-overlay"></div>
  19.         <a href="#" class="link-overlay" data-jckqvpid="82"></a>
  20.  
  21.  
  22.  
  23.         <div class="text-on-hover-wrap">
  24.             <?php do_action( 'woocommerce_after_shop_loop_item_title' ); ?>
  25.             <?php echo '<div class="categories">' . $product->get_categories() .'</div>'; ?>
  26.         </div>
  27.  
  28.  
  29.  
  30. <?php if ( has_term( 'drinks', 'product_cat' ) ) { ?>
  31.         <span class="loop1">&euro; 24.00 </span><br />
  32.         <span class="loop2">Per Tray of 24 Cans</span>     
  33. <?php }?>
  34.  
  35.  
  36.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement