M
M
m4son2020-02-05 22:12:25
WooCommerce
m4son, 2020-02-05 22:12:25

How to display product variation name in woocommerce?

I found a code that lists the variations. There he is

$available_variations = $product->get_available_variations();
    foreach ($available_variations as $variation) 
    { }

However, it does not contain data about the name of the variation, there is a slug and id. Can somehow through id it is possible?

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