woocommerce/templates/single-product/tabs/attributes.php

23 lines
607 B
PHP
Raw Normal View History

2011-12-09 22:44:03 +00:00
<?php
/**
* Attributes Tab
*/
global $woocommerce, $post, $product;
2011-12-09 22:44:03 +00:00
$show_attr = ( get_option( 'woocommerce_enable_dimension_product_attributes' ) == 'yes' ? true : false );
if ( $product->has_attributes() || ( $show_attr && $product->has_dimensions() ) || ( $show_attr && $product->has_weight() ) ) {
?>
<div class="panel entry-content" id="tab-attributes">
2011-12-09 22:44:03 +00:00
2012-04-03 09:34:02 +00:00
<?php $heading = apply_filters('woocommerce_product_additional_information_heading', __('Additional Information', 'woocommerce')); ?>
<h2><?php echo $heading; ?></h2>
<?php $product->list_attributes(); ?>
2011-12-09 22:44:03 +00:00
2012-04-03 09:34:02 +00:00
</div>
<?php
}
?>