Archive for the ‘Magento eCommerce Tips’ Category

Magento enable contact form, add custom field, link to top menu

var fbShare = {url: ‘http://sree.cc/magento_ecommerce_tips/magento-enable-contact-form-add-custom-field-link-to-top-menu’,size:’large’} How to enable the default Magento contact form?

System > Configuration > Contacts
Click the ‘Contact Us’ section on this page. Set ‘Enable Contact Us’ to ‘Yes’
Click the ‘Email Options’ section on the same page, just under it. Set the email address to which the comments should come, subject and email [...]

Magento – Problem with logging into “Admin” section after fresh installation

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/magento-problem-with-logging-into-admin-section-after-fresh-installation’,size:’large’} Try the following steps,
1. Try accessing your admin using your ip (if it is localhost, try 127.0.0.1).
2. If you cant get around with the above step then as a last step try the following,
Navigate within your Magento database to the MySQL table core_config_data and look for a row with [...]

Magento, Fatal Error while installing

var fbShare = {url: ‘http://sree.cc/xampp/magento-fatal-error-while-installing’,size:’large’} I got the following fatal error while trying to intall Magento 1.3.2.4 in XAMPP 1.7.3
Fatal error: Method Varien_Object::__tostring() cannot take arguments in C:\xampp\htdocs\magento\lib\Varien\Object.php on line 488
Follow the steps given below to fix this issue:-
1)File: /lib/Varien/Object.php (Line 484)
Change from
public function ___toString(array $arrAttributes = array(), $valueSeparator=’,’)
To this
public function __invoke(array $arrAttributes [...]

How to Setup a Multiple Currency Magento Shop

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/how-to-setup-a-multiple-currency-magento-shop’,size:’large’} Setting up a Multiple Currency for your Magento Shop is very easy to do. These are the basic steps to do that.
Login as admin and select System->Configuration, then select ’Currency Setup’ fromGENERAL section, then select Base currency, Default display currency, allowed currencies (press Control Key and Click the needed [...]

Database Concepts (How to write a Query?)

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/database-concepts-how-to-write-a-query’,size:’large’} Retrieving database information in Magento can be a bit complicated. Technically it is possible to write raw SQL statements to load entities and all their associated attribute values. However due to the EAV database design it is difficult to write query statements to get exactly what you want. Utilizing [...]

Some Important Functions: getModel(), getData(), getSingleton()

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/some-important-functions-getmodel-getdata-getsingleton’,size:’large’} We will be looking into some important methods used frequently in Magento like getModel(), getData(), getSingleton()..
getModel() (To create an instance of a Model class) :
The getModel() function is used to create an instance of a Model class. For example
$Product = Mage::getModel(’catalog/product’);
would basically tell Magento to create an instance of [...]

How to set minimum order amount in Magento

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/how-to-set-minimum-order-amount-in-magento’,size:’large’} Login as admin, then select System->configuration, then select ‘Sales‘ from left Nav and click on ‘Minimum order amount‘.
Then select Yes from Enable dropdown, enter Minimum order amount, enter message and also enter error message that will be shown in shopping cart.

Understanding Controllers

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/understanding-controllers’,size:’large’}
For understanding controllers we need to know how the Magento processes requests from the browser. Look at the following diagram which shows the page request flow. This diagram will give you an idea of the job of controllers.

Job of the controller:
The controller receives a URL request from the browser. [...]

Writing a Custom Module

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/writing-a-custom-module’,size:’large’} Creating a custom module is quite easy but it does involve several steps. This post describes the steps that need to be followed to create a new module.
STEP ONE: (Creating the Directory Structure)

You will be creating your module in the app/code/local directory. First create a directory and call it [...]

Magento Modules

var fbShare = {url: ‘http://sree.cc/magento-ecommerce-tips/magento-modules’,size:’large’} Modules are the core of Magento. Every action on the site, frontend or backend, goes through a module. Modules act as containers for one or more of the following: data models, rendering objects, action controllers, settings, database schemas, utility helpers. A module can be made of all six of [...]