문제

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