Output values from variations?
-
What is the easiest way to display raw data from variations, like height/width/length? I just need list of all values from specific variables
Let’s say i’m using code below:
global $product; if ($product->is_type( 'variable' )) { $available_variations = $product->get_available_variations(); foreach ($available_variations as $key => $value) { //values }}
how should i acccess values with id’s like
_height
,_weight
or even custom created meta let’s say for example_diameter
. Maybe there’s better way?Also is it possible to access those values outside of loop?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Output values from variations?’ is closed to new replies.