News & Blog
How To Automatically Set WooCommerce PayPal Orders as Completed
In a normal E-commerce operation an order will be made, the customer will pay for it, the order will be fulfilled and the item(s) dispatched, at which point the order will probably be marked as ‘Completed’. This process is supported in WooCommerce and allows the order to go fro...
How to Install Two Versions of XAMPP Side-by-Side
I’ve used XAMPP for as long as I can remember. I used it originally so I could learn and practice PHP without having to purchase hosting, however I use it now-a-days to develop sites locally before putting them into the public domain. Each version of XAMPP comes by default with a spe...
Limit Length of Column Value in Yii Bootstrap TbGridView
I’ve recently been working on a project built on the Yii framework that uses Yii-Bootstrap to make working with Yii and Bootstrap together a little easier. One of the widgets I frequently used was the TbGridView; A widget that outputs a table. Getting it integrated was easy enough bu...
Override WordPress All in One SEO Pack Plugin on Certain Pages
If you use WordPress on a regular basis you’ve probably heard of the All in One SEO Pack plugin. In summary it automates a lot of the SEO across your site and allows you to customise the meta properties on a per-page basis. Today I came across a scenario where I needed to override th...
Outputting Advanced Custom Fields ‘Repeater’ Field in a Random Order
For regular developers of WordPress, you may have heard of the Advanced Custom Fields plugin by now. If you haven’t, I recommend you go ahead and download it right away. Personally it has saved me many man hours of coding and has an excellent, easy-to-use interface that I just love w...
Product Variation post_parent Set Incorrectly From WooCommerce Import Suite
I’ve posted quite a lot recently about WooCommerce. It really is my first point of call when building an e-commerce solution in WordPress. In my latest project I’ve been dealing with a site that contains thousands of product variations which, to manage manually, is not feasible...
PHP’s ftp_nlist() Returning False, Even When Files Definitely Exist
PHP comes with a whole host of FTP functions built-in that makes performing FTP operations quick and easy. One of the things you can do is to use the ftp_nlist() function to get the contents of an entire directory. This is exactly what I was doing today and went something along the lines o...
WordPress Plugin – Property Portal BLM Export – WP-Property Add-On
UPDATE 5th December 2015: This plugin is no longer supported. However, good news! We’ve since developed PropertyHive. PropertyHive is a plugin for WordPress that handles property listings, as well as a much improved BLM export and real-time data feeds to property portals. Check it ou...
Debugging Why WordPress Won’t Create Plugin Tables On Activation
I’ve wrote small-ish WordPress plugins in the past, however at the moment I’m working on something a little more girthy (can a WordPress plugin be girthy?) where I’m getting to experiment with more of the advanced features. One of these features I’m getting to play ...
PHP Snippet – Deleting Files Older Than X Days
Sometimes it is necessary to perform clean-up operations and only keep the latest files within a directory. If we take application logs for example, we might only want to keep the last 7 days worth of files. This keeps our system cleaner and prevents unnecessary disk space being taken up. ...