How to Comment your Code in OpenCart
Last Updated on Monday, 4 February 2013 03:22 Written by Joe Stenhouse Tuesday, 12 February 2013 12:00
It is inevitable that if you spend enough time within the OpenCart framework you will end up writing some of your own customizations, especially if you plan on extending the default installation. There is nothing worse than making a ton of customizations and not remembering where they are later on. In PHP there are a couple of ways to comment your code so it will be easily seen and “marked” if you will, allowing you to find it later. This is especially helpful with files that have a thousand + lines of code. Sometimes, if you aren’t used to looking at PHP it can all start the look the same. For this article we will comment some custom code within the following file: catalog/controller/product/product.php which is a control file.
Today we will simulate adding a couple variables to be echoed on to the product.tpl page. The product.tpl is a VIEW file and is better known as Opencart’s Product Details Page. In
Learn MoreWhat is the DOCTYPE Used for Starting HTML5 Code?
Last Updated on Thursday, 10 January 2013 12:01 Written by Richi González Thursday, 10 January 2013 12:00
Hello,
As we all may know, HTML5 era is already here and day by day browsers are becoming more compatible, therefore, we, developers, need to start making our websites HTML5 friendly. Today I’ll tell you the very basic to make our site be read as HTML5.
The Doctype that you see on every page is mainly the big-not-rememberable HTML4 doctype:
Learn MoreHow to Make JS Code Execute After the Page has Finished Rendering (Website Optimization)
Last Updated on Wednesday, 9 January 2013 12:00 Written by Richi González Wednesday, 9 January 2013 12:00
Hello,
When I’m creating a website, I try to make it load as fast as possible. I have read lots of techniques on how to achieve this, and the one that is effortless and free to make it, is having JS code run after the DOM is ready.
1. Open the file where your JS code resides. For this article, I will have the following code between my <head> tags:
Learn MoreGoogle Adsense On WordPress! Yes You Can!
Last Updated on Thursday, 24 January 2013 06:30 Written by TJ Marsh Sunday, 30 December 2012 12:00
With WordPress you can easily add your AdSense code to your blog. In order to do this, first login to the administrative end of your website. Then, go to the Appearance -> Widgets menu.
In this page select to add a “Text” widget and click on the “Add” button next to it.
(Note : Some blogs you have to drag and drop the widget to the correct area you wish to display a widget)
Then a new window with your widget will open. Click on the edit link in its right part in order to open the edit panel of the widget. You should add a title (in our case – Advertisement) and right under it the actual code that you have obtained from Google. Next, click on the “Done” button and after that on the “Save Changes” button right under it.
Well done! You have just added your AdSense code to your WordPress blog.
Looking for quality WordPress Hosting? Look no further than Arvixe Web Hosting!
Learn MoreHTML to Know for Editing Content in WordPress
Last Updated on Wednesday, 26 December 2012 12:01 Written by TJ Marsh Wednesday, 26 December 2012 12:00
WordPress is one of the most popular blogging platforms used today. It is beginning to be used widely for regular websites as well, so it is more than just a blogging platform. You can easily use it to create almost any type of website you desire. Installing and setting up WordPress is fairly simple and many hosting providers will even do it for you. Often times, the toughest part of running a WordPress blog or website is creating high quality content. Sure, anyone can cut and paste text and articles into a WYSIWYG editor and have a somewhat decent WordPress website, but it’s not going be enough to compete in today’s online market. You need original and eye-catching content to really make a WordPress site popular. In order to create the type of content you need to build a successful WordPress website, there are a few simple HTML techniques that you should familiarize yourself with. In this tutorial we will cover some of the basic HTML knowledge you should possess as a WordPress entrepreneur.
Why Use HTML in WordPress
Learn More



Recent Comments