Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Das Element "plugin_code". Beinhaltet beliebig viele "code"-Elemente. Diese fügen php-Code in Hookpunkte ein diese werden bei der Plugininstallation in die Tabelle _plugin_code eingelesen:

Code Block
languagexml
titlext_customersdiscount.xml
<plugin_code>
   <code>
      <hook>class.customers_status.php:_getParams</hook>
      <phpcode><![CDATA[
      
      $header['customers_discount'] = array('type' => 'textfield','width'=>'350');
      
      ]]></phpcode>
      <order>1</order>
      <active>1</active>
   </code>
   <code>
      <hook>class.product.php:_get_data</hook>
      <phpcode><![CDATA[
      
      $header['group_discount_allowed'] = array('type' => 'status');
      
      ]]></phpcode>
      <order>1</order>
      <active>1</active>
   </code>
</plugin_code>

...