Following are the steps to make changes in the catalog folder:
1. Go to catalog/controller/module/ and copy the google_talk.php file and paste it in the same folder and rename it to helloworld.php; open it and look for the following line of code: class ControllerModuleGoogleTalk extends Controller {
Change the class name to :
class ControllerModuleHelloworld extends Controller {
2. Now look for google_talk and replace all with helloworld and save it.
3. Navigate to catalog/language/english/module/ and copy the google_ talk.php file and paste it in the same folder and rename it to helloworld. php; open it and look for Live Chat and replace it with Hello World and save it.
4. Navigate to catalog/view/theme/default/template/module/ and copy the google_talk.tpl file and paste it in the same folder and rename it to helloworld.tpl.
With the preceding file and code changes complete, our Hello World module is ready to be installed. Now log in to the admin section and navigate to Extensions | Modules, then look for Hello World and click on [install], then click on [Edit] of the Hello World module. Then type the content that you would like to show on the frontend in the Hello World Content field. Now click on the Add Module button and adjust the settings as per your requirements and click on Save. With the settings as per the following image, the module will be shown in the User Account links box (Login, My Account, Edit Account, and so on) for the customer to access as per the layout and it will be shown in the right column, as the status is enabled. The following screenshot shows the settings for the Hello World module:
Now navigate to the frontend of the site and click on the My Account link on the home page; you will see the Hello World module as shown in the following screenshot:
Following are the list of files that you need to upload to your live server:
• admin/language/english/module/helloworld.php • admin/controller/module/helloworld.php • admin/view/template/module/helloworld.tpl •catalog/controller/module/helloworld.php • catalog/language/english/module/helloworld.php • catalog/view/theme/default/template/module/helloworld.tpl
By uploading the files, installing the module, and providing the settings, your Hello World module is ready to use.
You can change the Hello World text at catalog/language/english/module/ helloworld.php to your desired text like Welcome to our Store and type the welcome message at the Hello World Content while setting the module and showing the welcome message at the frontend.
No comments:
Post a Comment