Search This Blog

Friday, 22 November 2013

Install SSL on Apache

Tuesday, 12 November 2013

How to create Layered Navigation for custom product collection?

Product image zoom free extensions

One Step checkout free extensions

One Step checkout free extensions:

http://www.magentocommerce.com/magento-connect/onecheckout-checkout-in-one-step-on-one-page-2559.html

http://www.magentocommerce.com/magento-connect/express-checkout-one-step-checkout-free-8118.html

http://www.magentocommerce.com/magento-connect/iwd-free-one-page-one-step-checkout.html

http://www.magentocommerce.com/magento-connect/0-step-checkout-9378.html

http://www.magentocommerce.com/magento-connect/swiftcheckout-free-single-page-checkout.html

http://www.magentocommerce.com/magento-connect/skip-checkout-step-1.html


Add discount coupon code in checkout review step:
http://www.magentocommerce.com/magento-connect/add-discount-coupon-with-checkout-process.html

 Quick contact form extension:
http://www.magentocommerce.com/magento-connect/freequickcontact-mageworld.html

Monday, 14 October 2013

Disable the Plugin and Theme Editor | Disable Plugin and Theme Update and Installation

Perl script for documents backup

#!/usr/bin/perl

# Configuration params
$backup_dir = '/home/username/public_html';
$file_prefix = 'doc_backup_';

# Get the timestamp for today
$date = `date "+%Y%m%d"`;
chomp($date);

chdir('/home/username/backup/doc_backup') ;

`tar -cv -f $file_prefix$date.tar $backup_dir`;

`bzip2 $file_prefix$date.tar`;

# Below line is used to remove the backups older than 5 days to free up the server space
system("find . -mtime +5 -type f -name  'doc_backup_*' -exec rm {} \\;");

Perl script for Database backup


#Configuration params
$host = 'localhost';
$user = 'username';
$pass = 'password';
$database = 'dbname';
$backup_dir = '/home/username/backup/db_backup';
$file_prefix = 'database_backup_';

# Get the timestamp for today
$date = `date "+%Y%m%d"`;
chomp($date);

`mysqldump --host=$host --user=$user --pass=$pass  $database | bzip2 -c > $backup_dir/$file_prefix$database$date.sql.bz2`;


Wednesday, 25 September 2013

Using Dynamic Class names

Increase number of emails to be sent via Nesletter

To increase the number emails to be sent for every 5 min:

In app/code/core/Mage/Adminhtml/controllers/Newsletter/QueueController.php

Change the 

$countOfSubscritions = 20;

To

$countOfSubscritions = 100; // whatever number you want

Also in app/code/core/Mage/Newsletter/Model/Oberver.php

Change the

$countOfSubscritions = 20;

To

$countOfSubscritions = 100; // whatever number you want

Extend the core admin controller

Sunday, 22 September 2013

Get Default Magento store ID

$defaultStoreId = Mage::app()
    ->getWebsite(true)
    ->getDefaultGroup()
    ->getDefaultStoreId();