0

我正在阅读 opencart 教程,当我尝试上传我的修改时,我收到以下错误:"Modification requires a unique ID code!". 修改有<code>标签。我正在使用 opencart 2.3.0.2。

修改代码:

<modification>  
<name>Add Header Notification in the catalog and admin pages</name> 
<version>1.0</version>                
<link>http://isenselabs.com</link>                
<author>iSenseLabs</author>                                                                 
<code>new_u_name</code>
<file path=”admin/view/template/common/header.tpl”&gt;   
    <operation>        
        <search>      
            <![CDATA[<header id=”header” class=”navbar navbar-static-top”&gt;]]>       
        </search>       
        <add position=”replace”&gt;            
            <![CDATA[                
                <div id=”HeaderNotification” style=” background-color: #F54661; z-index- :99999;font-size:22px;
                text-align:center; color:#fff; position:fixed;width:100%;height: 40px- ;line-height:40px;top:0px;”&gt;
                Header Notification in Your Admin Panel</div><header id=”header” class=”navbar navbar-static-top” style=”margin-top:40px;”&gt;           
                ]]>        
        </add>     
    </operation> 
</file>
<file path=”catalog/view/theme/*/template/common/header.tpl”&gt;    
    <operation>        
        <search>
            <![CDATA[</head>]]>        
        </search>        
        <add  position=”after”&gt;            
            <![CDATA[                
            <div id=”HeaderNotification” style=” background-color: #F54661; z-index:99999;font-size:22px;
            text-align:center; color:#fff; position:fixed;width:100%;height: 40px;line-height:40px;top:0px;”&gt;Header 
            Notification in Your Store</div><header id=”header” class=”navbar navbar-static-top” style=”margin-top:40px;”&gt;
            ]]> 
        </add>     
    </operation> 
</file>
4

1 回答 1

0
于 2017-06-22T19:58:19.790 回答