Change mangeto domain name

4 steps:
first, upload all files to your new web hosting;
second, restore your mysql database to your new one;
third, edit /app/etc/local.xml, and update to your new mysql database information, take care the following code:
(more…)

Posted in Magento. Comments Off on Change mangeto domain name »

How do I quickly delete all “Url Rewrite Management” urls in the magento database?

If your store is not live yet. Follow this:
1) Empty/Truncate core_url_rewrite table from Database.
2) Disable Permanent Redirects from Magento Backend.
3) Reindex Catalog URL Rewrites and all your URL’s will be corrected. (more…)

Posted in Magento. Comments Off on How do I quickly delete all “Url Rewrite Management” urls in the magento database? »

How to remove magento parent category path from sub category url

How to remove parent category path from sub category url?
Instance: http://www.eye4eyeglasses.com/eyeglasses/cheap-eyeglasses
I just want the category c url is http://www.eye4eyeglasses.com/cheap-eyeglasses

Edit /app/code/core/Mage/Catalog/Model/Url.php
Find around line 632 and change:

//if (null === $parentPath) {
//$parentPath = $this->getResource()->getCategoryParentPath($category);
//}
//elseif ($parentPath == '/') {
$parentPath = '';
//}
(more…)

Posted in Magento. Comments Off on How to remove magento parent category path from sub category url »

How to Get Customers Full Name from Magento?

We can use mysql to get customers’ full name, you can add customer’s email also by using mysql clause, for example, we need to search 10,000 customers from Canada, and save the result a to a new table, say aaa_ca_custoemr, here the code: (more…)

Posted in Magento. Comments Off on How to Get Customers Full Name from Magento? »

Can’t login to admin after installation of Magento

I am running Vista Home basic system, and I play Xampp, after I have installed Magento, I found I can not login the admin panel.

I found the problem is in Session, magento can not set session and always create it again, that is why logination does not work.

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code, (more…)

Posted in Magento. Comments Off on Can’t login to admin after installation of Magento »

Apache HTTP server has stopped working when install Magento

Today I am up to the configuration stage in the Installation of Magento on my own localhost server but when I press continue Iget a message from windows saying ‘apache http server has stopped working, close program’ .

I am install Magento under Xampp 1.7 for windows platform, and I use Vista Home Basic System. (more…)

Posted in Apache, Magento. Comments Off on Apache HTTP server has stopped working when install Magento »
King Php Science Welcome, you are from: 54.166.203.76