I want to fetch all the customer group which is used in the tier price eg 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();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.