Last active
July 11, 2016 05:11
-
-
Save Robert-IMT/09ab0b7f9f3a775da6aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $collection = $category->getProductCollection(); | |
| $collection -> addAttributeToSelect(array('NAME_OF_ATTRIBUTE1','NAME_OF_ATTRIBUTE2')); | |
| ?> | |
| <?php | |
| foreach ( $collection as $_product ) { | |
| echo $_product -> getNameOfAttribute(); | |
| echo $_product -> getAttributeText('NAME_OF_ATTRIBUTE') ; | |
| echo $_product -> getData('NAME_OF_ATTRIBUTE'); | |
| echo $_product -> getResource() -> | |
| getAttribute('NAME_OF_ATTRIBUTE') -> | |
| getFrontend()->getValue($_product); | |
| } ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment