WooCommerce Layered Nav Widget [closed]

You can list all the attributes of a product by putting the following code in a template file:

global $product;
$product->list_attributes();