I am creating a woocommerce theme and I have product variations i.e. size which is displayed on product details page but problem is that I want to get all variations in my c
The following code:
$variations = $product->get_available_variations();
will return all variantion of product
This function is put where you show all variation:
\wp-content\plugins\woocommerce\templates\single-product\add-to-cart\variable.php