OpenCart – Condensing Language Strings (Smart Coding)
Last Updated on Sunday, 3 March 2013 08:04 Written by Joe Stenhouse Wednesday, 6 March 2013 12:00
This article will be about one of the many tricks involved in writing clean condensed code when doing your own customizations within the Opencart framework. Since Opencart is an MVC-L there will be Language files involved if you are writing your own pages to echo on the front end. You should never hard code text directly into a .tpl (template file) because one “it is messy” and two it makes it difficult to track down and change later on whether it is you or the customer doing it. The first thing you do is create your own language file in the correct language directory. The easiest way to do that is to open up an existing file and just SAVE AS and rename it to that folder. This way you already have strings there you can just replace with your own so if we were looking in for example: catalog/language/english/account/account.php it would look like this:
Learn MoreWorking with Language Strings in Dolphin 7.1
Last Updated on Wednesday, 12 December 2012 12:00 Written by Mscott Wednesday, 12 December 2012 12:00
Hello and welcome! Today, I am going to show you how to modify the language strings in Dolphin 7.1. Dolphin uses language strings to simplify the translation of your site into many different languages. In this example, we are going to change the “Copyright 2011 Your Company” in the sites footer to the name of our actual company.
First, we will log in to our Dolphin admin. Once there, click “languages settings” under the “settings” tab on the left menu bar.
Learn MoreHow to Install a Module in Dolphin 7
Last Updated on Saturday, 27 August 2011 11:28 Written by Mscott Saturday, 27 August 2011 02:33
Hello and welcome! Today I am going to show you how to install a module in Dolphin 7.
Let us begin by logging into our Dolphin admin menu. Once inside, click the “Modules” link under the “Tools” submenu.
Learn More
Recent Comments