multiple=true; return parent::getInput(); } protected function getOptions() { $options = array(); $this->multiple=true; $query = 'SELECT `virtuemart_country_id` AS value, `country_name` AS text FROM `#__virtuemart_countries` WHERE `published` = 1 ORDER BY `country_name` ASC '; $db = JFactory::getDBO(); $db->setQuery($query); $values = $db->loadObjectList(); foreach ($values as $v) { $options[] = JHtml::_('select.option', $v->value, $v->text); } if(!empty($this->element->xpath)){ $options = array_merge(parent::getOptions(), $options); } //BAD $class = 'multiple="true" size="10"'; // Merge any additional options in the XML definition. return $options; } }