C
C
coverme2019-02-08 14:00:53
WooCommerce
coverme, 2019-02-08 14:00:53

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.
5c5d6160e858d566610338.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question