Magento Themes and Magento Extensions

Which is the best Magento Session Storage to use?

Share
Posted on March 10th, 2015 | Posted by admin

Magento is a feature-rich eCommerce platform that provides control and peerless flexibility over the content and functionality of an online store. It is built on impressive feature set, thus providing a standardized and functional architecture and extended PHP Technology features. Sessions are user-specific data that is stored on the server for each client and the server maps clients to their sessions with a cookie. When you go back to a Magento store after a few days of browsing it, and you find that the items you added to cart are still in the cart – that is known as sessions. How quickly data can be put in and got out of the session storage, how it is distributed in a clustered environment and how volatile it is are some of the important considerations when choosing how to store sessions. There are four methods for magento session storage. So let us see which is the best Magento session storage to use.

File system Session storage

Simplicity, durability and stability are the benefits of file-based sessions for Magento. It’s simple because you don’t have to do anything to set it up and most modern file systems use journaling to make sure that your session data is consistent in the event of a system crash which shows its stability. It’s also durable, because restarting your system will not cause you to lose your session data. To enable file-based storage, choose it in your app/etc/local.xml file or during installation.

Frontend performance: why should you care?

Share
Posted on November 27th, 2014 | Posted by admin

Speed is the most important feature of any online store. If it is too slow, people will just not use it. It may have great products, low prices, the most beautiful interface, but if it takes forever to load, people will just go away.

In the offline world, we often have to wait. Line in the bank, security control at the airport, checkout line at the grocery store… pick your favorite. “I had such a great time waiting in the line for 3 hours” – said no one, ever…  People hate waiting.

On the other hand, in the online world, we have ability to serve thousands of customers in the same time. Immediate service. And that’s exactly what people expect. They expect websites to load in 2 seconds or less. Almost half of customers will abandon the website if it takes more than 3 seconds to load, and most of them will never come back.

Session and cookie in Magento

Share
Posted on November 26th, 2014 | Posted by admin

Magento provides very easy way to handle Cookie and session.
Magento session:
Magento session is handle by core Module ‘core/session’. Here is the way to save Session in magento

$session = Mage::getSingleton('core/session');
$session->setData('my_magento_session', array('id' => "my_session_id_value", 'setAt' => time()));

This will store a array of session “my_magento_session”.
we can get store session like this

$mysession = Mage::getSingleton('core/session')->getData('my_magento_session');
$sessionId = $mysession["id"];

and session can be removed with setting session variable null

How to disable Magento compilation?

Share
Posted on November 7th, 2014 | Posted by admin

The rough way to do this is to comment out ( # ) a line in the config.php located in YOUR_MAGENTO_FOLDER/includes/config.php. So replace this:

define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
#define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

with

#define('COMPILER_INCLUDE_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'src');
define('COMPILER_COLLECT_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR.'stat');

Setting up a second homepage in Magento

Share
Posted on September 5th, 2014 | Posted by admin

Setting up a second homepage in Magento
If you run multi-store in a single Magento installation with different themes (e.g. two stores), you need to setup a second homepage for your second store, and it’s fairly simple.

Simply go to CMS > Manage CMS pages to create a new page with below setting:

  • Page Title: Name for the title (try use something descriptive other than ‘home page’)
  • SEF URL Identifier *: Home
Page 2 of 51«12345»102030...Last »