Call Phtml file in System configuration setting in both magento 1 and magento 2.

I need to call ajax for check customer is register or not.

check screen shot for better understand.

enter image description here

1 Answer 1

I found answer for Magento1:
Just follow below steps :
1) edit system.xml file <sections>
 <authentication_notice translate="label" module="customapi">       <frontend_model>customapi/adminhtml_system_config_fieldset_authentication</frontend_model> <help_link>link here</help_link>  <sort_order>0</sort_order>  <show_in_default>1</show_in_default>  <show_in_website>1</show_in_website>   <show_in_store>1</show_in_store> </authentication_notice>

class Customplugin_Customapi_Block_Adminhtml_System_Config_Fieldset_Authentication 
    extends Mage_Adminhtml_Block_Abstract
    implements Varien_Data_Form_Element_Renderer_Interface
    protected $_template = 'customapi/Authentication.phtml';

     * Render fieldset html
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
    public function render(Varien_Data_Form_Element_Abstract $element)
        $elementOriginalData = $element->getOriginalData();
        if (isset($elementOriginalData['help_link'])) {
        return $this->toHtml();

3) create phtml file in app/design/adminhtml/default/default/template/customapi/Authentication.phtml

Now your data will show .

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.