Working in a product view template (.phtml) I am trying to get the Admin label for a configurable option value. I have managed to var_dump
the front end values:
$productAttributeOptions = $_product->getTypeInstance(true)->getConfigurableAttributesAsArray($_product);
$attributeOptions = array();
foreach ($productAttributeOptions as $productAttribute) {
foreach ($productAttribute['values'] as $attribute) {
$attributeOptions[$productAttribute['label']][$attribute['value_index']] = $attribute['store_label'];
}
}
var_dump($attributeOptions);
This gives me an array:
array (size=1)
'Configurable Option' =>
array (size=2)
378 => string 'Black' (length=5)
379 => string 'Pink' (length=4)
Which is all fine and dandy. But how would I go about getting the "Admin" values for these options? The reason I would like to do this is because the admin values will contain hex colours that I can use to show a colour for a visitor to select instead of just having a drop down.
Any help is muchly appreciated.