Advertisement
bowenac

Untitled

Apr 30th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Attributes tab
  4.  *
  5.  * @author      WooThemes
  6.  * @package     WooCommerce/Templates
  7.  * @version     1.6.4
  8.  */
  9.  
  10. global $woocommerce, $post, $product;
  11.  
  12. $show_attr = ( get_option( 'woocommerce_enable_dimension_product_attributes' ) == 'yes' ? true : false );
  13.  
  14. if ( $product->has_attributes() || ( $show_attr && $product->has_dimensions() ) || ( $show_attr && $product->has_weight() ) ) {
  15.     ?>
  16.  
  17.         <?php $heading = apply_filters('woocommerce_product_additional_information_heading', __('Additional Information', 'yit') ); ?>
  18.  
  19.         <?php if( ! empty( $heading ) ): ?>
  20.             <h2><?php echo $heading; ?></h2>
  21.         <?php endif; ?>
  22.         <?php $product->list_attributes(); ?>
  23.         <?php $key="Material"; echo get_post_meta($post->ID, $key, true); ?>
  24.     <?php
  25. }
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement