/** * Retrieve parsed value * * @return array|string|int|float */ public function getValueParsed() { if (!$this->hasValueParsed()) { switch ($this->getAttribute()) { case 'customer_group_condition': /** @var Mage_Customer_Model_Session $customerSessionModel */ $customerSessionModel = Mage::getSingleton('customer/session'); $this->setValueParsed(array($customerSessionModel->getCustomerGroupId())); break; } } return parent::getValueParsed(); }