Magento: how to display all product attributes


$attributes = $_product->getAttributes ();
foreach ( $attributes as $attribute ) {
	if ($attribute->getIsVisibleOnFront ()) {
		$value = $attribute->getFrontend ()->getValue ( $_product );		
		if (is_string ( $value ) && strlen ( $value )) {
		?>
		<p class="no-space">
			<span class="text-blue bold-text"><?php echo $attribute->getStoreLabel()?>: </span>
			<?php echo $value ?>
		</p>
		<?php
		}
	}
}

Leave a comment

Your email address will not be published. Required fields are marked *