opencart - How to add variable in language file opencart2 -


i trying add variable in language file using opencart extension, there no change in file.

my code:

<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>` 

please let me know wrong code.

thanks in advance

when want call single file use name not path.

this should work:

<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> 

Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -