I have an array of this type, Using this code
$myarray = get_post_meta( $product->get_ID(), 'wcb2b_product_group_prices' );
print_r($myarray);
prints me:
Array ( [0] => Array ( [428] => Array ( [regular_price] => [sale_price] => ) [449] => Array ( [regular_price] => 20.00 [sale_price] => ) [9609] => Array ( [regular_price] => 20.00 [sale_price] => ) ) )
Updated code:
$myarray = get_post_meta( $product->get_ID(), 'wcb2b_product_group_prices' );
//print_r($myarray);
foreach ($myarray as $key => $value) {
// print_r($value);
foreach ($value as $key2 => $value2) {
// print_r($value2);
foreach ($value2 as $key3 => $value3) {
echo $value3;
}
}
}
I would be able to print the [regular_price][sale_price] Value.
How do you do that?
Thanks for help