public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); $this->addOption("lead", $this->__("Lead"), array($this->_parentFieldCode => null)); $this->addOption("opportunity", $this->__("Opportunity"), array($this->_parentFieldCode => null)); } return parent::_toHtml(); }
public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); foreach ($this->_getFields() as $category) { $this->addOption($category["path"], $category["modified_names"]); } } return parent::_toHtml(); }
public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); /** @var Mage_Core_Model_Store $store */ foreach ($this->_getFields() as $store) { $this->addOption($store->getCode(), $store->getName()); } } return parent::_toHtml(); }
public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); /** @var HooshMarketing_Marketo_Model_Eav_Attribute $attribute */ foreach ($this->_getFields() as $attribute) { $_attributeCode = $attribute->getAttributeCode(); $this->addOption($_attributeCode, $_attributeCode); } } return parent::_toHtml(); }
public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); foreach ($this->_getFields() as $value => $_data) { if (isset($_data["title"]) && isset($_data["category"])) { $this->addOption($value, $_data["title"], array("class" => $_data["category"], $this->_parentFieldCode => "")); } } } return parent::_toHtml(); }
public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); /** @var HooshMarketing_Marketo_Model_Eav_Attribute $attribute */ foreach ($this->_getFields() as $attribute) { $_code = isset($this->__codes[$attribute->getApiType()]) ? $this->__codes[$attribute->getApiType()] : "none"; $_attributeCode = $attribute->getAttributeCode(); $this->addOption($_attributeCode, $_attributeCode, array($this->_parentFieldCode => $_code)); } } return parent::_toHtml(); }
public function _toHtml() { $this->_initParams(); if (!$this->getOptions()) { $this->_addDefaultOption(); foreach ($this->_getFields() as $key => $_data) { if (!isset($_data["class"])) { //validate fields continue; } /** @var HooshMarketing_Marketo_Model_Mapping_Classes_Abstract $_instance */ $_instance = Mage::getSingleton($_data["class"]); if ($_instance instanceof HooshMarketing_Marketo_Model_Mapping_Classes_Abstract) { $fields = $_instance->getFields(); foreach ($fields as $code => $field) { $this->addOption($code, $field, array($this->_parentFieldCode => $key)); } } } } $this->_addCustomOption(); //allows to use input instead of select return parent::_toHtml() . $this->getCustomInputHtml(); }