Add code

Tuesday 5 January 2016

Magento is redirecting to previous url after transfered to new server

For this you need to follow these simple steps in database :

1. your host/phpmyadmin
2. select your database
3. find `core_config_data` table in that
4. change the secure and unsecure urls here, which is https://www.domain.com/

Import & Export all categories using csv file (without extension)

If you want to import all categories and products to your website, just follow the following instructions.

1. First of all, create all categories and create one product in your website,
2. After this, export that data and keep that with you.
3. Now arrange the data which you want to import, that total have to be arrange in the format of your exported data.
4. After arranged you can easily import the data into your website which you want to import newly in usual manner.
5. Then go to system > import/Export > Data flows > Follow that rules

Error 500 Internal Server Error

The Web server (running the Web Site) encountered an unexpected condition that prevented it from fulfilling the request by the client for access to the requested URL.

Solution :

Open your hosting control panel and check the server error logs. Usually the error caused by the incorrect directory permissions.
In case you don’t have access to the server error log or are unable to resolve the issue please contact your hosting provider

Monday 4 January 2016

How to get magento skin url of images?

getSkinUrl() function is used to get the image location. For example, If you want to get your image location "skin/frontend/default/Your theme/images/image.jpg" use the below code.


$this->getSkinUrl('images/image.jpg');

Fatal error: Maximum execution time of 30 seconds exceeded

To fix it, open your php.ini and replace the value for 'max_execution_time' and 'max_input_time' as per below.


max_execution_time = 3600
max_input_time = 3600

when i enabling compilation in magento Got fatal error

Open your "root/includes/config.php" file.
Comment the below line using '#' symbol.

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


Thats it. Refresh the cache and check now.

How to find magento version?

Login to the admin for Magento:

http://www.yourdomain.com/admin/

And look in the footer, you should see the following:

Magento ver. X.X.X

Where X.X.X is the version number.

Friday 1 January 2016

How do you display more than 3 related products in Magento 1.9?

Go to your magento folder location, and edit the file

app/design/frontend/YOUR PACKAGE/YOUR THEME/template/catalog/product/list/related.phtml

If the file is not there, then go to

app/design/frontend/base/default/template/catalog/product/list/related.phtml


check If count mentioned 3, change it to 4,5 or the number of products you want.

Saturday 26 December 2015

After install magento, admin page shows 404 page not found

Open your phpmyadmin from your host try once this sql command.

Run this Sql :

SET FOREIGN_KEY_CHECKS=0; UPDATE core_store SET store_id = 0 WHERE code='admin'; UPDATE core_store_group SET group_id = 0 WHERE name='Default'; UPDATE core_website SET website_id = 0 WHERE code='admin'; UPDATE customer_group SET customer_group_id = 0 WHERE customer_group_code='NOT LOGGED IN'; SET FOREIGN_KEY_CHECKS=1;

Now admin can able to login.

Price changes to zero after selecting an option in updated version

I have updated my magento version to 1.9.2.2 recently, After updated to new version, if i select the price of product, that cost is showing normally fine till here. The main problem is, if i select the any Custom option like color, size That product's price is showing ZERO.

Solution:

First of all,
we need to go to this path

app/design/[your package]/[yourtheme]/template/catalog/product/view/options.phtml

Search for this script

price += parseFloat(config[optionId][element.getValue()]);

Replace with

price += parseFloat(config[optionId][element.getValue()].price);

Now it is cleared.

How to find out package and theme name of magento?

    From the root folder :

  • Go to your root folder
  • app/design/frontend/default/ folder
  • In this you can find the package or theme name.

    From the Admin panel :

  • Login to your admin panel
  • system > configuration > General > Design
  • In this you can find the package or theme name.

How to change or remove the copyright text in Magento

You can do it from the following path :

Admin -> System -> Configuration -> Design (left menu) -> 
Footer ->  Copyright.
 
 
Type here your desired Copyright.

Magento : 404 error is showing admin page

Hello, Sometimes we may get the error on admin page once done with the Magento installation. In that scenario, we have to do the following: ...