Entries by ctn-admin

Add Meta Description to Opencart Information Pages

Working with Opencart version 1.5, however the script below is very easily editable to work with any version. The way it works is by simply adding a meta description column to your information database table, populating it when editing your information page and spitting it out into the html of your front end page. 1) […]

Default Grid View Products/Categories – Opencart 2

Find the category.tpl file inside your template/product/ folder. Add the following code to the bottom of the page just below  <?php echo $footer; ?> <script type=”text/javascript”> $(document).ready(function() { if(typeof display == ‘function’) { display(‘grid’); } }); </script>

Contact Form 7 – Redirect to Thank You Success page

Instead of using the default success message in the Contact Form 7 WordPress Plugin you may wish to redirect users to a customised thank you / success page. This can be useful for showing extra information, tracking leads etc. Create the Contact Form 7 Redirect… Login to WordPress and Select Contact Forms from the sidebar […]

How to increase PHP memory limit for wordpress

If you run into a problem where your wordpress page is coming up blank or timing out there is a good chance the PHP memory is timing out. Have a look in your server’s error.log file and you might see something like the following [08-Sep-2014 12:35:06 UTC] PHP Fatal error: Allowed memory size of 50331648 […]

selectnav.js – how to set default title

selectnav.js is a handy jquery tool used for transforming a <ul> list into a select menu. Generally for a resonsive mobile friendly view. Available here: https://github.com/lukaszfiszer/selectnav.js/ By default it has an empty title which can be a little confusing for users. To give the menu a title do the following… Find the following code in your […]

Enable PDF uploads in Magento

By default you are only allowed to upload image based files into the WYSIWYG editor built into Magento. If you need the ability to upload PDF files here is how. Navigate to: app/code/core/Mage/Cms/etc/config.xmlAround line 110 onwards you will see: <allowed> <jpg>1</jpg> <jpeg>1</jpeg> <png>1</png> <gif>1</gif> </allowed> Add in the line:  <pdf>1</pdf> where needed and upload your […]

Download Magento extensions directly.

If your like me and prefer to download a file and manually upload it with ftp this will show you how. Find your required extension on Magento Connect. Click the “Get Now” button, then the “Get Extension Key” button. Copy this extension key. Go to http://freegento.com/ddl-magento-extension.php and paste in the extension key. Download the compressed folder […]

ERORR 503: Service Unavailable. Magento fix.

This is one of the more frustrating problems I have encountered with Magento. It generally occurs after working with 3rd party plugins. It will lock you out of the both the front-end and back-end of your website.   The solution, the only one as far as I know, is to login via FTP to the […]

Remove wordpress admin bar in versions 3.0 +

If you are using any of the newer versions of WordPress you may miss having the functionality to let you turn of the admin bar that hovers on the top once you are logged in. I personally prefer this off as it tends to throw off the look of your design as you are working […]