Answer the question
In order to leave comments, you need to log in
Woocommerce how to get list of attributes in Single-product.php?
Good afternoon, in the file content-product.php I display the attributes in the following way
global $product;
$attributes = $product->get_attributes();
Answer the question
In order to leave comments, you need to log in
And so it works?
$product = wc_get_product();
$attributes = $product->get_attributes();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question