Last active
September 22, 2016 19:29
-
-
Save mahdi-alavi/84698c40706874663cd1 to your computer and use it in GitHub Desktop.
Woocommerce Display all Product Variations Values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* for see all value use var_dump($product_variations); | |
*/ | |
$product_variations = $product->get_available_variations(); | |
foreach ( $product_variations as $product_variation ) { | |
echo $product_variation['variation_id']; | |
echo $product_variation['display_regular_price']; | |
echo $product_variation['variation_description']; | |
} | |
//var_dump($product_variations); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment