Magento: www or non-www URL redirecting to homepage

Problem: You have a Magento website with Base URL = http://example.com/ Working: http://example.com/category-one.html Not working: http://www.example.com/category-one.html (redirecting to homepage) The only difference in the above two URLs is that the second URL has “www” in it. Similary, you may have another Magento website with Base URL = http://www.example.com/ In this case, Working: http://www.example.com/category-one.html Not working: … Read more

[SOLVED] Sorry, no quotes are available for this order at this time magento [Checkout Shipping Methods]

I just upgraded a Magento shop and I had problem on ‘Shipping Methods‘ sections of onepage checkout. No shipping methods were displayed and I was getting the following message over there: Sorry, no quotes are available for this order at this time magento I had enabled ‘Table Rates‘ shipping method. Solution: – Login to your … Read more

Magento Upgrade: Problems/Errors and Solutions

Here are solution to some errors that I faced while upgrade Magento. Error 1: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in downloader/pearlib/php/System.php on line 400 Solution: Edit file named ‘pear‘. This file is present on root folder of your Magento installation. Add the following lines at the beginning of file: MAGE_PEAR_PHP_BIN=/usr/local/bin/php5; export MAGE_PEAR_PHP_BIN Error 2: … Read more

Magento: Load multiple products at once

Suppose, you have ID of some products and you want to load them at once in Magento, then here is a solution:- Suppose, you have 5 products ID: 5, 22, 45, 75, 88 You can store them in one array: $productIds = array(5, 22, 45, 75, 88); Then, you can use MySQL’s IN() clause for … Read more

PHP: Read Write JSON

JSON stands for JavaScript Object Notation. It is a light-weight text-based open standard designed for human-readable data. It is language-independent, with parsers available for many languages. The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, … Read more

Xubuntu: How to stop applications launching on startup automatically?

You might face a problem of applications launching automatically when you login to your Xubuntu machine. In my case it was Pidgin and Google Chrome launching automatically on startup. I have not set them as startup applications. If you logout Xubuntu without closing the opened applications then it seems that Xubuntu saves the session of … Read more

Synapse: An alternative to Ubuntu Unity Dash

Synapse is a graphical launcher enabling you to start applications and also to quickly find and access relevant documents and files (by making use of the Zeitgeist engine). This can be a good alternative to Ubuntu Unity Dash for those who prefer lightweight and faster graphical launcher. This can also be helpful for getting Unity … Read more

Xubuntu / Xfce: How to add Keyboard shortcut for Terminal and Suspend action?

I am using Xubuntu (an elegant and easy-to-use Linux distribution, based on Ubuntu, using Xfce as the graphical desktop). Xubuntu has shortcut for locking the screen. It is CTRL+ALT+Del. But, there was no shortcut for Suspend action (keeping the computer in Sleep mode). If you would like to add keyboard shortcuts on Ubuntu, you may … Read more