×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: bejoy balan
Added: Sep 18, 2014 6:16 AM
Views: 150
Magento -get column values , single column values
  1. Only want a particular field?
  2.  
  3. var_dump($collection_of_things->getColumnValues('name'));
  4. The team at Magento have even given us some rudimentary filtering capabilities.
  5.  
  6. var_dump($collection_of_things->getItemsByColumnValue('name','Spot'));