Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $attribute = $objectManager->create('MagentoEavModelConfig')->getAttribute('catalog_product', 'color');
- $colorAttributeId= $attribute->getAttributeId();
- foreach ($attribute->getSource()->getAllOptions(true) as $option) {
- $colors[$option['value']] = strtolower($option['label']);
- }
- print_r($colors);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement