Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $_product->getAttributeText('shoes_model'); // returns nothing
- $_product->getAttributeText('brand'); // returns brand name
- $_product->getShoesModel();
- $_product->getData('shoes_model');
- $attribute = $_product->getResource()->getAttribute('custom_attribute_code');
- if ($attribute)
- {
- echo $attribute_value = $attribute ->getFrontend()->getValue($_product);
- }
- <?php $_product = $this->getProduct(); ?>
- <?php echo $_product->getData('attributename'); ?>
Add Comment
Please, Sign In to add comment