News & Blog

Shopify – Get a Page’s Title, Content and More With The Handle

March 4th, 2014 - Posted by Steve Marks to Software, Web Development.
Following on from a recent e-commerce project in Shopify, I came across a scenario whereby I needed to get details about a particular page from somewhere on the site. For examples sake, let’s imagine that I needed to get the content of an ‘About Us‘ page and display it on...

WooCommerce Not Working After Moving It To New Server

July 3rd, 2013 - Posted by Steve Marks to PHP, Web Development.
I’ve just moved an e-commerce WordPress site that uses the WooCommerce plugin to another server and, when going to view the new site, I started receiving the following error: PHP Fatal error: Call to a member function is_visible() on a non-object in /public_html/wp-content/plugins/wo...

Resolving JavaScript ‘Expected identifier’ Error in IE7 and IE8

January 16th, 2013 - Posted by Steve Marks to Javascript / jQuery, Web Development.
Whilst working with a JavaScript object earlier today I found myself coming up against an error in the JavaScript console that read as follows: SCRIPT1010: Expected identifier The error was only present in Internet Explorer 7 and 8, was a little unhelpful to say the least, and was showing ...

Passing Array to DataTables via aoData Parameter

October 6th, 2012 - Posted by Steve Marks to Javascript / jQuery, PHP, Web Development.
With jQuery plug-in DataTables, you can quickly and easily draw fully functional datagrids. One of the features avalable is being able to generate the data server-side by passing parameters to a script via AJAX. A simple example of this can be found below: var oTable = $('#example').dataTa...

MySQL Ignoring Small Words in Full-Text Search Using MATCH AGAINST

September 23rd, 2012 - Posted by Steve Marks to Web Development.
I’ll start by jumping right in and providing an example of a scenario where search terms of a short length (less than four characters to be precise) might not be included in a MySQL query when using Full-Text searching and MATCH() AGAINST(). Let’s imagine we have the following ...

Passing an Optional Variable to a JavaScript Function

October 13th, 2010 - Posted by Steve Marks to Javascript / jQuery, Web Development.
Ever needed to call a function expecting parameters but use the functions default value rather than passing the same value each time? Let me give you an example: function do_something(my_var) { alert(my_var); } do_something(); In doing the above you will get ‘undefined’ output....