我正在尝试从Magento 2.0 EE 上的客户会话中获取当前商店范围内的自定义客户属性选项值。
现在我只得到选项ID:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$customerSession = $objectManager->get('Magento\Customer\Model\Session');
$customerRepository = $objectManager
->get('Magento\Customer\Api\CustomerRepositoryInterface');
$customer = $customerRepository->getById($customerSession->getCustomerId());
$attrValue = $customer->getCustomAttribute('attribute_code')->getValue();
var_dump($attrValue) is string(id1,id2,id3)
如何获取这些选项的前端文本值。