Add new admin user in OpenCart from PHPMyAdmin

A new client project I’m working on requires I duplicate their website, install it on my development server and work on it before transferring it back onto their server once complete. To do this, I need access to the OpenCart admin panel, but I want to keep the existing admin users where they are and … Continued

Magento: Fixing Cannot add or update a child row: a foreign key constraint fails

I’m currently completing a rather large project for a client. While I regularly make backups before installing any major extensions or conducting core work, yesterday I needed to make my first restore on this particular database. While Magento has a great tool for backups and restores, I always prefer to do it manually from either … Continued

Adding a Contact Form 7 form into a PHP template in WordPress

Sometimes you may want to add a contact form 7 form into a template directly. While normal use is via a shortcode eg, you can’t use this directly inside a PHP page template. Instead, you need to wrap this inside the WordPress do_shortcode function, in order to enable it to parse correctly. Wrapping your form … Continued

Change default weight unit for FedEx shipping in Magento

If your store offers multiple shipping methods to your customers, it’s important to align all shippers to use the same unit for weight. This is becuase weight in Magento is not actually a particular unit. Weight to Magento is just a number, so theoretically, could be grams, kilograms, pounds, tonnes, you name it. Realistically, you … Continued

Add Category ID into the body and post class in WordPress

Here’s a little snippet I regularly use to add the ID of the post/page into the body class and post class. It’s really helpful to aid targeting specific things in CSS, add functionality with javascript and to quickly pinpoint the ID of a page without checking through the back-end. Add this to your themes functions.php … Continued

5 Design Tips To Increase Sales

While there are so many factors to consider when finding a great balance between design and conversion, here are 5 instant tips to consider and tweak to increase web conversion straight away. 1. Website Colours Colours play a massive role in websites. Not only do they carry a psychological sway and role in influence, but … Continued

Call Google’s jQuery Library in Your Template

Why use your own bandwidth when you can use Google’s own! This snippet ensures your WordPress website correctly calls the Google jQuery library direct from Google for speed, security and reliability: NB: Just make sure you use the above with… …in your header file, or wherever your wp_head scripts get called from.

Remove the admin bar from the front-end of WordPress

This little snippet removes the admin bar permanently from all users while logged in and viewing the website from the front-end. Personally, I never use it and always turn it off with this little snippet.

5 Simple Tweaks To Boost Your Website Conversion

I love website conversion and find myself becoming more and more intrigued with attempting to master this fine art. It blends design, psychology, user experience, development and combines a deep understanding of how people actually use the internet and how they read webpages. Overall, it’s pretty interesting stuff. During the course of my studies, I’ve … Continued