Enable Save Tabs on Exit for Firefox 4+

1. Type about:config at the address bar and hit enter.
2. Click the “I’ll be careful, I promise!” button
3. At the filter bar, type browser.showQuitWarning and hit enter.
4. You can either double click on it to change the value from false to true, or right click on it and select Toggle.

Magento: How to check if current page is homepage?

Magento: How to check if current page is homepage?

Magento: How to check if current page is homepage?

Here is a quick code to check if the current page is homepage or not.

if($this->getIsHomePage()) {
    echo 'You are in Homepage!';
} else {
    echo 'You are NOT in Homepage!';
}

Below is an alternative way to check for homepage:-

$routeName = Mage::app()->getRequest()->getRouteName();
$identifier = Mage::getSingleton('cms/page')->getIdentifier();
 
if($routeName == 'cms' && $identifier == 'home') {
    echo 'You are in Homepage!';
} else {
    echo 'You are NOT in Homepage!';
}

Hope this helps. Thanks.

Magento: Add custom attribute to Magento’s PDF invoice

Add custom attribute to Magento’s PDF invoice

Add custom attribute to Magento’s PDF invoice

Hello everyone! Today I’ll show you how to add custom attribute to Magento’s generated PDF invoice in just a few steps. Since this article is pretty straight-forward, here we go.

One of my recent tasks was to create a custom attribute for products called inchoo_warehouse_location, and output it when click on “Print” (invoice in admin section) occurs. Since PDF generation is Magento’s core functionality, we’ll have to rewrite it a bit.
(more…)

How to tar/untar, compress/uncompress files/folders using php script

How to tar/untar, compress/uncompress files/folders using php script

How to tar/untar, compress/uncompress files/folders using php script

Uploading and downloading files is a chore every webmaster has to cope with on daily basis, but if you do this by compressing the files, uploading the tar or zipped and uncompressing them on server, life becomes a little easier.

Similarly taking backup on a server becomes easier if you just compress the files/folder on server and download the tar.gz file. Usually these commands are run over SSH, but if you do not have SSH access, you can place the commands in php script too.
(more…)

SSH: How to Fix Permissions on Files and Directories?

SSH: How to Fix Permissions on Files and Directories?

SSH: How to Fix Permissions on Files and Directories?

Here are the SSH commands to fix your permissions on a mass level:

    find ~/public_html -type d -exec chmod 755 {} \;

    find ~/public_html -type f -exec chmod 644 {} \;

Basically, the format is to find, or look, in the path of ~(which means home) and then in public_html. (If you want to look in a different directory, you can change this. e.g. ~/public_html/myblog) And then it looks for the document type, be it directory (d) or file (f), and executes the chmod(change mode) command to change the permissions on all results.

Magento: No input file specified – Godaddy

Magento: No input file specified - Godaddy

Magento: No input file specified – Godaddy

After installing Magento in godaddy. I logged into the admin section, it shows “No input file specified”.

Solution:
Login to your Godaddy Account. Click on your hosting account.
Go to Settings > File Extensions Management and change .php and .php5 to run under PHP5.2X (instead of PHP5.2xFastCGI)

CakePHP – jQuery Autocomplete Tutorial

CakePHP – jQuery Autocomplete Tutorial

CakePHP – jQuery Autocomplete Tutorial

In this tutorial, i will show you how to implement jQuery UI’s autocomplete widget in cakephp. The script in this tutorial is copy paste from tutorialzine article “A Simple Movie Search App w/ jQuery UI” . We are using a MySql database containing a users table. When you start typing a user name in the text box of the search form, an AJAX request is sent to controller. The controller returns a JSON object with suitable user name.

This is what we’re going to create:

CakePHP – jQuery Autocomplete Tutorial

CakePHP – jQuery Autocomplete Tutorial


(more…)

Magento 1.7 Upgrade Errors with Solutions

Magento 1.7 Upgrade Errors with Solutions

Magento 1.7 Upgrade Errors with Solutions

Upgrading Magento sometimes becomes very tedious. You may receive errors like 500 internal error, getAlloptions(), two navigation bars, Reindex error, “CONNECT ERROR: Package ‘Mage_All_Latest’ is invalid” etc. while upgrading to 1.7 version. In this blog we have shared some errors of magento 1.7 upgrade with their solutions.
(more…)

Magento: Tutorial- How to Upgrade Magento to 1.7 via FTP

Magento: Tutorial- How to Upgrade Magento to 1.7 via FTP

Magento: Tutorial- How to Upgrade Magento to 1.7 via FTP

Many of you might not like the previous method of Upgrade which was via connect manager. Sometimes when you have huge no. of products, then upgrading through Connect Manager, becomes a tedious task. In such a situation, we would like to suggest Magento Users to upgrade magento through FTP.

In this Tutorial, we will provide you steps to be followed while upgrading to Magento 1.7:
(more…)

Page 8 of 24«567891011»

Pin It on Pinterest