Monday, April 7, 2014

Changes made in the admin folder [Getting Started with OpenCart Modules]

Following are the steps to make changes in the admin folder:
1.       Navigate to admin/controller/module/ and copy google_talk.php and paste in the same folder. Rename it to helloworld.php and open it in your favorite text editor, then look for the following line of code: classControllerModuleGoogleTalk extends Controller {
Change the class name to:
classControllerModuleHelloworld extends Controller {
2.       Now find google_talk and replace all with helloworld as shown in the following screenshot:


3.   Then, save the file.
4.       Navigate to admin/language/english/module/ and copy google_talk. php and paste in the same folder; rename it to helloworld.php and open it. Then look for the following line of code:
$_['entry_code'] = 'Google Talk Code:<br />
<span class="help">Goto
  <a href="http://www.google.com/talk/service/badge/New"     target="_blank">
    <u>Create a Google Talk chatback badge</u>
  </a> and copy &amp; paste the generated code into the   text box. </span>';
5.       And replace with following code:
$_['entry_code'] = 'Hello World Content';
6.       Then again find google_talk and replace all with helloworld.
7.       Then, save the file.
8.       Navigate to admin/view/template/module/ and copy the google_talk.tpl file and paste it in the same folder and rename it to helloworld.tpl; open it and look for google_talk and replace it with helloworld and save it.

No comments:

Post a Comment