Tuesday, August 14, 2012

Magento Remove index.php from url

Magento by default added the index,php in url .So,As per the SEO page will not get indexed properly SO here we have try to Remove index.php in url from both End Access Magento URL without index.php
For example:
http://domain.com/index.php/category to
http://domain.com/category

Then Just follow steps
1) Login to admin section by using the URL http://domain.com/index.php/admin
2) then go to “System >> Configuration >>Web >> Search Engines Optimization” Use Web Server Rewrites : YES
 3) Go to “System >> Configuration >>Web >>Secure” Use secure URL Frontend: YES
 4)Then create the .htaccess file under your the magento installed folder.


Friday, August 10, 2012

Magento Adding New Field in the product Custom Options

Magento had limited field in custom Options so if we required the New or To add the New field in the magento product Custom options just follow the steps

Note : Here DEAL is the new field you have to replace by your field name 

Magento Remove "+" from product custom options

AS By default Magento add "+" sign in custom options .In order to Remove we need to edit file which is located in
app\code\core\Mage\Catalog\Block\Product\View\Options\Abstract.php

just copy the file and add in local which will become 
app\code\local\Mage\Catalog\Block\Product\View\Options\Abstract.php

now serach $sign = '+';

just replace $sign = ' ';

Note:just remove the (+) symbol.That's it refresh the page  

Tuesday, August 7, 2012

Magento Add Custom Grid in Admin

Add custom column to admin grid for your module. we will see how to add a banner image column to our grid.
For example our module name will be Magento_Banner.

Adding Banner Image to Grid

Monday, August 6, 2012

Install ionCube loader on your WAMP or XAMPP server.

Some time while running magento on WAMP or  XAMPP give error about the  ionCube loader..so easy solution for this just follow this step

In order to run eSoftScript Pro on your server you must have installed ionCube on your
server.  Herea are 2 quick ways to install the loader:

Saturday, July 28, 2012

Magento 2 will Release at the End of this Year

Magento have announced the Magento 2 project  which will be realsing at the end of this year.
Magento 2 is the result of the Magento team’s learning curve in the world of ecommerce application development since its inception back in 2001.

Magento 2. Much in the way of improved functionality and performance has been promised. Some of the new features set to be included are:

Magento send Custom Email

Magneto have default some of the already made Email Template .Now we also can make the Custom email Template used as per our need ,for standard of sending the Email.let's take an example of adding the Custom Email

Magento upgrading the MYSQL SCRIPT for Module

Every Module in Magento have the Sql folder in which all the insert script is written but some time we need to add new field in  some tables so we need to upgrade the script .You don't need to change or run the query directly in databse it's wrong way

You can upgrade your module to make your necessary database changes. To do so,

Magento Add to cart in Upsell Product

Magento by default doesn't show the "Add to CART" Button in Upsell product

just need to add the following code u will get the Add to Cart Button

<button type="button" class="form-button add-to-cart" onclick="window.location='<?php echo $this->getAddToCartUrl($_link) ?>';"> <?php echo $this->__('Add to Cart') ?> </button>

Saturday, July 21, 2012

Magento - Limit Displayed Characters From Product Short Description

Magento by default showing more word in the Short Description ,But some time we want to reduce the length of Short description 

We can use this code wherever we required the Short Description should come with limit words

Sunday, July 15, 2012

Magento Observer and Dispacting Events

What is Event?
An Event is something that occurs in a certain place during a particular sequence flow. Say once a customer completes an order, the flow sequence would be to

1. Save the order details 2. Send e-mail confirmation to customer

may be more like before loading a database model, after loading a database model, before saving the cart object and many more

Events may be emitted before or after each of these flow points to introduce custom logic.

Magento Debugging tips

Here are some Debugging tips which will help to debug magneto code.As some of the tools are also availiable which will help to debug the code easily 

There is one free extension availiable for the Debugging the code ,files,DB .....click on the following link 

Saturday, July 14, 2012

Magento Maximum Length of Attribute

In Magento By default maximum length of an attribute is less than 30 synbols

we can upgrade to new value just need to edit one file

app/code/core/Mage/Eav/Model/Entity/Attribute.php copy to

app/code/local/Mage/Eav/Model/Entity/Attribute.php and

Find  CONST ATTRIBUTE_CODE_MAX_LENGTH = 30; and

Replace CONST ATTRIBUTE_CODE_MAX_LENGTH = 50;

Hope this will help you

Magento Condition based on the Layout

Sometime we require to place the condition for particular layout  you can use this two methods

Friday, June 1, 2012

Magento Set Title,Meta keywords and Meta Description

We can set the Title,Metakeywords and Meta description for our Custom Module.We can use the phtml or Php file for changing the title,Meta keywords and meta description

For Example we have title and Template in our XML file we will change though our php or phtml file

LinkWithin

Blog has moved, searching new blog...