Magento Get Category List As Admin Select

Magento CE 1.8.0.0 Sometimes we want to retrieve a list of all categories on site to populate a select input field in admin. Here’s one way this can be achieved...

Useful Function To Get The Full URL Path In Magento

Magento CE 1.8.0.0 I recently needed to build the full URL for Magento from a relative path. I wrote this little function for my helper and I thought someone else...

Manipulating Files Using Terminal Commands

CentOS 6.4 Here’s a few very quick and basic commands to do things with files via the terminal. These can be vastly improved upon; please comment if you have better...

Add Home Link To Magento Navigation With Active State

Magento 1.8.0.0 CE This is actually really easy to do. Why this still isn’t part of Magento out-of-the-box beggars belief, but I guess they have their reasons. First, copy the...

Vhost Configuration To Host Magento On Nginx

Magento CE 1.8.0.0 Alpha, Nginx 1.4.2, PHP-FPM 5.5.4 I had to pluck up the courage to dump Apache in favour of Nginx as my Magento server. By the way, Nginx...

Git Push & Checkout As A Non-Privileged User

CentOS 6, Git 1.7.1 I’m a huge advocate for server security, as my other posts will testify to. Today, I’m going to push code to a bare Git repo and...

Copy WordPress to the Server Using Wget

Wget This quick article will be elementary to most SysAdmins, but really useful for newcomers. Whenever you want to install the latest software to your server, do you find that...

Using Magento’s Built-In AJAX Submit With Validation

Magento 1.7.0.2 CE I’m creating a custom module and I want to be able to submit the form via Magento’s built-in AJAX. Also, I want to validate the user input...

Create MySQL Database, User And Password On The Terminal

MySQL terminal We are going to create a new database, user and password and grant that user access to the new database. Let’s first login to MySQL in the terminal...