On my magento I have different store views and some simple products with customizable options. I also have some custom code that checks the label of these options:
$myvalue = 0;
$options = $item->getProductOptions();
foreach ($options['options'] as $option) {
if($option['label'] == "mylabel") $myvalue = $option['value'];
}
On default store view everything works fine. My problem is the transations: I have translated the customizable option title via backend by switching scope on the product page. Now, my if condition no longer works when I'm not in default store view because the $option holds only the translated label.
Is there a way to get the default label instead of the translated one?