2017-01-17 2 views
0

Je crée un module pour opencart et dans ocmod Je veux ajouter une recherche multi-ligne et remplacer. Comment puis-je perfrom multi-ligne de recherche et de remplacer dans ocmod.xml?Comment faire une recherche multi-ligne et remplacer dans ocmod?

<file path="catalog/view/theme/fastor/template/common/footer.tpl"> 
     <operation> 
      <search ><![CDATA[ 
       <?php 
      $store_id = $config->get('config_store_id'); 
      if ($store_id == '1') { 
     ?> 
      <div id="craftysyntax_1" style="float: right;"><script type="text/javascript" src="https://livehelp.clipboards.com/livehelp_js.php?eo=0&amp;department=1&amp;serversession=1&amp;pingtimes=10&amp;dynamic=Y&amp;creditline=W"></script></div> 
     <?php } elseif($store_id == '0') { ?> 
      <div id="craftysyntax_2" style="float: right;"><script type="text/javascript" src="https://livehelp.clipboards.com/livehelp_js.php?eo=0&amp;department=2&amp;serversession=1&amp;pingtimes=10&amp;dynamic=Y&amp;creditline=W"></script></div> 
     <?php } ?> 
      ]]></search> 
      <add position="replace"><![CDATA[ 
      <?php 
       if($moduleData['Enabled']=='yes'){ 
        $var = htmlspecialchars_decode($moduleData['WidgetTitle'][$language_id]); 
        echo $var; 
       } 
      ?> 
      ]]></add> 
     </operation> 
    </file> 

Répondre