Magento: Select Box / Dropdown List on Layered Navigation

You have plain text and link to those text in Magento Layered Navigation section. You can easily change the display of Layered Navigation links into a selection box / dropdown list. To do so, you need to edit the following file: app/design/frontend/YOUR_PACKAGE/YOUR_THEME/template/catalog/layer/filter.phtml filter.phtml file contains code something like below: <ol> <?php foreach ($this->getItems() as $_item): … Read more

Magento: Hide Column from Admin Grid

Here is a quick tip to hide any column from admin grid in Magento. Hiding columns in admin grid becomes necessary when you want those particular columns in exported csv or xml file but you don’t want to display them in the admin grid. You can hide columns from admin grid by setting column_css_class and … Read more

Magento: Add / Delete / View Custom Options of Product Programmatically

Custom options on Magento products are designed to make simple products function like a configurable product with different choosing options like color, size, etc. before purchasing the product. In this tutorial, I present the code to create/add, view, and delete custom options of a product in Magento. ADD CUSTOM OPTIONS In the following example code, … Read more

Print Product & Cart Page: Magento Extension [FREE]

Print Product & Shopping Cart Page is a FREE Magento Extension that generates neat and clean print page of products and shopping cart, removing unnecessary header, footer & sidebar. This module is compatible with Magento version 1.5 and higher (Magento 1.5, 1.6, 1.7, 1.8, 1.9). A “Print Product” link is added to product page and … Read more

Magento: Check & Get Secure URL

Here are the code snippets to check for different secure URLs in Magento. Secure URL can be enabled from configuration settings (System -> Configuration -> GENERAL -> Web -> Secure). Enable Secure URL in Frontend System -> Configuration -> GENERAL -> Web -> Secure -> Use Secure URLs in Frontend = Yes Enable Secure URL … Read more

Magento: Get currency code & currency rate

Here are the code snippets to get base currency code, default currency code, current currency code, all allowed currency code and current currency rate in Magento. Base currency is the currency that is used for online transaction from your store. Default currency is the currency used to display pricing in your store. Current currency is … Read more

Magento: Add Custom Selection List in System Configuration

This tutorial shows how to add a custom select list in configuration settings of a custom Magento module. Suppose, your module’s namespace is YourNamespace and your module’s name is YourModule. And, you want to add a selection list of Brands that contains mobile brand names like Samsung, Sony, Apple, etc. Here is the code to … Read more