WooCommerce: How to show attributes on cart page?

With latest version of WooCommerce, attributes on the page are no longer displayed.

I used this solution display it:

$product_data = $cart_item['data'];
$attributes = $product_data->get_attributes();

Does somebody have a solution to display it in the latest version?

Read more here: WooCommerce: How to show attributes on cart page?

Leave a Reply

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