Magento Themes and Magento Extensions

How to enable Search Engine Friendly URLs in Magento

Share
Posted on December 15th, 2014 | Posted by admin

To enable Search Engine Friendly URLs in Magento, you have to log in to the Magento administration area and click on the Configuration button. Under the System navigation menu, switch to Web page from the sub-navigation panel on the left.

When the page loads, you will see blue lines which represent closed options tablets. Click on the Search Engines Optimization tab and turn on the Use Web Server Rewrites (mark as Yes). Click on the Save Config button and your Magento SEF URLs will be enabled.

How to fix Fatal error: Call to a member function getStoreLabel() in price.phtml

Share
Posted on December 12th, 2014 | Posted by admin

Play with Magento 1.8 CE and some one may get this fatal error:

1
Fatal error: Call to a member function getStoreLabel() on a non-object in /app/design/frontend/.../.../template/catalog/product/price.phtml

This is not happen with Magento 1.7 CE! We are not sure if it is Magento’s bug but a “quick and dirty” fix may help you.

Solution

Step 1:

Open file /app/design/frontend/<PACKAGE>/<THEME>/template/catalog/product/price.phtml to edit.

Custom Account/Registration Fields

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

I am busy on a big project about Magento.
I will update the blog as my work notes.

We will add four fields into Account/Registration Page.

Four core files:

app/design/frontend/default/yourtheme/template/customer/form/register.phtml – Has the HTML form for initial registration Note: this file will also be used for a one-shot database extension

app/design/frontend/default/yourtheme/template/customer/form/edit.phtml – Has the HTML form for edit by customers

app/code/core/Mage/Customer/Model/Entity/Setup.php – Has an array full of customer attributes to use for registration

app/code/core/Mage/Customer/etc/config.xml – Has a description of fields to be used in the forms

app/code/core/Mage/Customer/controllers/AccountController.php – For checkbox option

On the Register.html:

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

Page 3 of 76«12345»102030...Last »