2015-07-01 3 views

ответ

1

вы можете поместить этот код в ваш модуль System.Xml

 <catalog> 
      <groups> 
       <productalert> 
        <fields> 
         <test_field translate="label"> 
          <label>some text</label> 
          <frontend_type>select</frontend_type> 
          <source_model>adminhtml/system_config_source_yesno</source_model> 
          <sort_order>6</sort_order> 
          <show_in_default>1</show_in_default> 
          <show_in_website>1</show_in_website> 
          <show_in_store>1</show_in_store> 
         </test_field> 
        </fields> 
       </productalert> 
      </groups> 
     </catalog> 

Все простой System.XML файл -

<?xml version="1.0"?> 
<config> 
    <sections> 
     <catalog> 
      <groups> 
       <productalert> 
        <fields> 
         <test_field translate="label"> 
          <label>some text</label> 
          <frontend_type>select</frontend_type> 
          <source_model>adminhtml/system_config_source_yesno</source_model> 
          <sort_order>6</sort_order> 
          <show_in_default>1</show_in_default> 
          <show_in_website>1</show_in_website> 
          <show_in_store>1</show_in_store> 
         </test_field> 
        </fields> 
       </productalert> 
      </groups> 
     </catalog> 
    </sections> 
</config> 

результата - new field

+0

Спасибо брат !!!. Работает. –

+0

Добро пожаловать :) –

Смежные вопросы