Question

I want to fetch all the customer group which is used in the tier price e.g All Group, Not Logged In, Wholesaler,General etc.

I have code on my extended controller and its path is company\TierPriceImport\Model\Convert\Adapter\product.php

Here is my code:

foreach ($this->_group_list as $group) 
{
       if (strtolower($group['label'])) 
       {
         echo $group['label']
         break;
       }
 }

it only shows me General and Wholesale. However, i need to display complete list of group name which are available in magneto instead of just two.

Please help me to get this done.

Thanks

Was it helpful?

Solution

$this->_group_list = Mage::getModel('customer/group')->getCollection();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top