diff --git a/templates/single-product/product-attributes.php b/templates/single-product/product-attributes.php index bd1a87faaa5..da978fcf25d 100644 --- a/templates/single-product/product-attributes.php +++ b/templates/single-product/product-attributes.php @@ -6,48 +6,46 @@ * * @author WooThemes * @package WooCommerce/Templates - * @version 2.0.8 + * @version 2.1.3 */ -if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly +if ( ! defined( 'ABSPATH' ) ) { + exit; // Exit if accessed directly +} -global $woocommerce; - -$alt = 1; +$has_row = false; +$alt = 1; $attributes = $product->get_attributes(); -if ( empty( $attributes ) && ( ! $product->enable_dimensions_display() || ( ! $product->has_dimensions() && ! $product->has_weight() ) ) ) return; +ob_start(); ?>
get_weight() . ' ' . esc_attr( get_option( 'woocommerce_weight_unit' ) ); ?> | |
get_dimensions(); ?> | |
enable_dimensions_display() || ( ! $p } ?> |