Answer the question
In order to leave comments, you need to log in
How to display woocommerce attribute data in cart widget?
How can I display an attribute in the cart widget so that it is clear what size pizza was put in the cart? It works directly in the cart itself, on the CART page, but it doesn’t work in the side widget. Is there any way to display this data? Some kind of hook, well, or a piece of code.
Tried such options -
$size = $product->get_attribute( 'size' );
but nothing works.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question