I have set the multiple select option in system configuration. I need to get the selected values. I used the following, Mage::getStoreConfig('customer/group_location/data')

But I didn't get anything. Somebody help me

below is the system.xml code

<?xml version="1.0"?>
        <customer translate="label" module="customer">
                <group_location translate="label">
                    <label>Group Location</label>
                    <fields> <!-- Add Group location under customer configuration -->
                            <label>Group Location</label>
  • 1
    Can you post the code from system.xml and config.xml – philwinkle Mar 16 '16 at 19:06
  • 1
    added system.xml @philwinkle – vinothavn Mar 16 '16 at 19:16
  • 1
    What if you change to a simple text field without source model? Do you manage to get something ? – Raphael at Digital Pianism Mar 16 '16 at 19:58

Just an idea...

Change data for any other identifier, as personal as you can, as it's a very common alias in Magento for getting data

| improve this answer | |
  • 2
    That's a good idea I thought about it too, I was waiting for the OP to answer my comment before suggesting this. – Raphael at Digital Pianism Mar 17 '16 at 8:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.