Skip to content

Instantly share code, notes, and snippets.

@mahdi-alavi
Last active September 22, 2016 19:29
Show Gist options
  • Save mahdi-alavi/84698c40706874663cd1 to your computer and use it in GitHub Desktop.
Save mahdi-alavi/84698c40706874663cd1 to your computer and use it in GitHub Desktop.
Woocommerce Display all Product Variations Values
/*
* 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