I need to use the customer group name in the invoice. Based on
$order I can get the customer group ID.
$customerGroupId = $order->getCustomerGroupId();
I tried the following code:
$groupname = Mage::getModel(‘customer/customer_group’)->load($customerGroupId);
This results in the following error:
Fatal error: Call to a member function load() on a non-object
How can I get the group name?