On a WordPress > Woocommerce cart page, I'm using product variables. Instead of the values of the variations, I would like to display the labels.
This are the values:
["_gravity_form_lead"]=>
array(9) {
[3]=>
string(1) "6"
[2]=>
string(1) "6"
[5]=>
string(1) "1"
[6]=>
string(4) "1.25"
[7]=>
string(1) "0"
[8]=>
string(4) "2.85"
["1.1"]=>
string(11) "Total Price"
["1.2"]=>
string(6) "$10.24"
["1.3"]=>
string(1) "1"
}
But for example instead of [5]=>string(1) "1" which is 1, I should have the label of the variation called "Single Sided".
Is there any function that can help me list each every product variation separated and not in group, so I would have total control over them what kind of details to list regarding a variation?