Set the default index page in Apache

 Using .htaccess. Just add: DirectoryIndex index.html

Increase Magento product title length

To increase Magento 1.x product title character limit

Navigate to: \app\design\frontend\default\theme692\template\catalog\product

Open list.phtml

SMTP ASchroder for Magento 1.9

Installing a Magento extension SMTP ASchroder manually by FTP

Command prompt error: PHP is not recognized as an internal or external command

When installing Magento 2, you may experience the command prompt error: PHP is not recognized as an internal or external command, operable program or batch file.

Maven Magento HTML5 uploader extension installation

Copy/paste the uploader files from ‘app’ and ‘skin’ folder to the root direction. Make sure to overwrite directories: ‘app’ and ‘skin’ in the Magento 1.9 directory.

Magento error - fatal error uncaught error function name must be a string in ...Uploader.php on line 259

If you are experiencing, a similar error to below:

Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\acf\lib\Varien\File\Uploader.php on line 259 

Change “Categories” text in Magento mobile menu | Method 1

In Magento 1.9 » Navigate to “app/design/frontend/default/themeXXX/locale” folder, where themeXXX is your actual theme name. 

Change “Categories” text in Magento mobile menu | Method 2

In Magento 1.9 » Navigate to “app/design/frontend/default/themeXXX/template/page/html/” folder, where themeXXX is your actual theme name.

Magento error - fatal error uncaught error function name must be a string in ...Layout.php on line 555

If you are experiencing, a similar error to below:

Fatal error: Uncaught Error: Function name must be a string in C:\xampp\htdocs\acf\app\code\core\Mage\Core\Model\Layout.php:555 Stack trace: #0

Getting your Google Analytics code

      1. Goto Google Analytics and login. You can use your Gmail username and password for Google Analytics account.

Show SKU in Magento 1.9

Navigate to app\design\frontend\rwd\default\template\catalog\product\view.phtml

Disable “Add To Compare” in Magento 1.9 video

Watch the below video on how to disable “Add To Compare”  in Magento 1.x including 1.9

Disable “Add To Compare” in Magento 1.9

Open: app/design/frontend/yourpackage/yourtheme/template/catalog/product/list.phtml and remove or comment:

<?php if($_compareUrl=$this-getAddToCompareUrl($_product)): ?>

Adding redirection page on Contact Form 7 send

If you want to redirect users to a thank you page or payment page after submission of a contact form7. Follow the below instructions.

Magento 1.9 avoid Cron job for not sending mail

Magento 1.9 and higher use Cron jobs for sending mail. If your cPanel is not configured correctly for Cron jobs the Sales mails may not be sent or received by the users.

Adding products to Magento 1 front page

To add selected products to home page, use the below code.

{{block type="catalog/product_list" name="home.catalog.product.list" alias="products_homepage" category_id="49" template="catalog/product/list.phtml"}}

Fix Maximum execution time error in phpMyadmin

If you are using Xampp version on Windows, importing a large database can sometimes give a Maximum execution time exceeded error.

Adding fullwidth and widewidth in Wordpress 5 non Gutenberg themes

With the new Gutenberg Wordpress 5 release some themes from Wordpress 4 may not have the FullWidth and WideWidth coded in the theme function. To create this follow the below instructions.

Hide Wordpress post data, hide Post date, Author etc

Login into Wordpress Admin

Full width in Wordpress 5

Add full width in Gutenberg Wordpress 5. You need access to your theme and core files

Hide price in Magento, hide price for visitors in Magento 1.x

The below instructions will let you hide price for guest visitors to your Magento store. The instruction will only work for Magento 1.x. From Magento 1.7 to 1.9. The instructions are done in php code.

Adding custom fonts to Wordpress

Download the font zip file from any site, such as Google fonts: https://fonts.google.com/

Contact form 7 reCaptcha

Make sure you have Contact Form 7 installed as a plugin and you have a contact form

Importing an SQL file in XAMPP MYSQL via command prompt

Importing an SQL file in XAMPP MYSQL via command prompt. You may need to do this if the sql file is too large. In excess of 500MB, I have imported a sql file of over 1GB.