Articles in the Magento Category
Magento »
Here is a quick code to check if the current page is homepage or not. Below is an alternative way to check for homepage:-
Magento »
In my previous article (Magento: Very Useful Collection Functions), I had written about database interaction functions present in class Varien_Data_Collection_Db. Here, I am going to explain some database interaction functions present in the class Mage_Eav_Model_Entity_Collection_Abstract. These collection functions are very useful to select data from Magento database. We need them almost all the time for [...]
Magento »
Here is a quick code to convert price amount from current currency of the shop to base currency. This is applicable when you have a multiple currency shop. From the code below, you can convert any currency you desire. You just need the ‘From Currency Code’ and ‘To Currency Code’. In the example below, I [...]
Magento »
Here, I will show you how you can get list of all categories of your Magento Shop. You might want to display all categories in homepage or any CMS page. There are different ways to get the category listing. Here are some:- Get all categories
Magento »
Here, I will show you how you can change the default page layout in Magento. By page layout, I mean all CMS page, category page, etc. There are different ways to change the page layout in Magento. Here are some of them:-
Magento »
Here, I will show you how you can get list of all modules in your Magento installation. It’s a simple code. Get all modules
Magento »
Here is a quick tip to change the Default welcome message that appears in header of Magento shop. When the user is not logged in, the message appears as ‘Default welcome msg!‘. To change the message text, follow steps below:-
Magento »
Here, I will show you how to show the store selector (store switcher) in header. By default, the store selector is present in footer. Create a new phtml file (template/page/switch/stores-top.phtml) and write the following code in it :-
Magento »
Here, I will show you how you can change the location of currency selector to header in Magento. By default, the currency selector is displayed in the left sidebar. Here, I will show you how you can show it in header just below the language selector. Create a new phtml file (template/directory/currency-top.phtml) and write the [...]
Magento »
Here, I will show you how you can change the location of currency selector in Magento. By default, the currency selector is displayed in the left sidebar. Here, I will show you how you can show it in right sidebar. Showing currency selector in product view detail page
Magento »
Problem: I was transfering Magento files and database from one server to another. I did complete all the transfer process of files and also exported and imported the database. After that, when I tried to access the site, I got the following error:- Recoverable Error: Argument 1 passed to Mage_Core_Model_Store::setWebsite() must be an instance of [...]
Magento »
Here, I will be showing how to select, insert/add, update/edit and delete data in the Magento way. It’s about implementing the CRUD (Create Read Update Delete) concept. :) Suppose, I have a database table named ‘news‘ with the following fields:-
Magento »
In this article, you will learn about creating multiple website in Magento. Creating or setting up multiple stores in Magento is somehow easy but creating/setting up multiple website in Magento is a bit difficult task :). This step-by-step tutorial will guide you to do so.
Magento »
Problem: I am having problem in displaying PayPal payment method in payment method section of onepage checkout in Magento. I am using “PayPal Website Payments Standard“.
Magento »
Here, I will be showing you how you can add attributes for your categories in Magento. From the admin panel, you can only add attributes to product. To add attributes to category, you need to write sql query in your phpmyadmin or a better way would be creating a new custom module and adding attributes [...]
