2016-06-29 16 views
0

我想在使用opencart擴展的語言文件中添加一個變量,但文件沒有變化。如何在語言文件中添加變量opencart2

我的代碼:

<file path="admin/language/english/catalog/product.php"> 
    <operation> 
    <search><![CDATA[// Error]]></search> 
     <add position="before"><![CDATA[ 
      $_['entry_a_start_date'] = 'Start Date/Time'; 
      ]]> 
     </add> 
    </operation> 
</file>` 

請讓我知道什麼是錯的代碼。

在此先感謝

回答

1

當你想調用一個單一的文件中使用name沒有path

這應該工作:

<file name="admin/language/english/catalog/product.php"> 
    <operation> 
    <search position="before"><![CDATA[// Error]]></search> 
     <add><![CDATA[ 
      $_['entry_a_start_date'] = 'Start Date/Time'; 
      ]]> 
     </add> 
    </operation> 
</file> 
+0

我要做像視圖和語言的多個文件的修改,此外,我已經使用的名稱,而不是路徑,但它仍然無法正常工作 – user3595966

+0

我編輯我的代碼和感動'位置=「從'添加'到'搜索'標籤之前,現在再次檢查它。 – DigitCart

+0

好的,謝謝我會檢查這個 – user3595966

相關問題