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

有帮助吗?

解决方案

$this->_group_list = Mage::getModel('customer/group')->getCollection();
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top