Friday, October 10, 2014

Show new products list on homepage in Magento

Please follow the below steps to showing the new products list on homepage in Magento.






1. Admin -> CMS -> Pages
2. Edit "Home page" content
3. Click "Content" tab
4. Press "Show/Hide editor"
5. Click "Insert Widget"
6. Choose "Catalog New Products List" from Widget type drop down
7. Ans choose "Widget Options"
8. Done. Insert Widget




Wednesday, October 8, 2014

Magento admin login not working

There is the problem with session cookie. So open the /app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and comment out the line

//'domain'   => $cookie->getConfigDomain(),
//'secure'   => $cookie->isSecure(),
//'httponly' => $cookie->getHttponly()

Drupal8 Beta1 install problem

If you are getting PHP Extension while install problem in Drupal8 Beta1, Please uncomment  extension=php_fileinfo.dll on php.ini file.

This will work.

Monday, September 22, 2014

Path url alias change in Drupal

use hook_pathauto_alias_alter() to change the url path alias in Drupal.

hook_pathauto_alias_alter(&$alias, array &$context)

$alias - Alias of the path
$context - It can be node, user...etc

Thursday, September 18, 2014

Big differences between GIT and SVN

1. GIT is distributed version controller, SVN is not
GIT is more intended to be used in distributed mode which means, every developers checking out code from central repository/server will have their own cloned repository installed on their machine. If you are stuck somewhere where you don’t have network connectivity, like inside the flight, basement, elevator etc., you will still be able to commit files, look at revision history, create branches etc. But SVN should have internet connection to commit files to repository.

2. GIT branches are not the same as SVN branches
Branches in SVN are nothing but just another folder in the repository.
GIT branches is much more easier & fun. You can quickly switch between branches from the same working directory. It helps finding un-merged branches and also help merging files fairly easily & quickly.

3. GIT’s content integrity is better than SVN’s
SHA-1 cryptographic hash function is used for maintaining data integrity in GIT.