Reputation: 3188
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
Upvotes: 1
Views: 4742
Reputation: 8585
$this->_group_list = Mage::getModel('customer/group')->getCollection();
Upvotes: 5