You Are Here: Home » Posts tagged "Tutorial Magento"

Magento: Direct SQL Queries

Hi friends, After the short tutorial few days ago, I would like to share with you more knowledge in this article. This topic is a little bit tricky so please follow me closely :) To start with, Magento uses data models which provide a great way to access and modify data. Varien uses aptly named methods and clever abstraction to hides away the complex SQL, which is needed when performing data operations. Whi ...

Read more

7 tips to pick a best theme for your Magento Online Store

Developing an ecommerce store is the best way to improve scalability of your business. The first and foremost thing you’d require when you plan to set up an ecommerce store is the platform on which it is going to be raised upon. Given the current trend, majority of websites are raised on Magento as it is proved to be a brilliant platform with plentiful features. The open source nature of this platform adds ...

Read more

Sending Email in Magento

Anyone can send mail using php mail() function. But in magento, all the functionality you need to just send argument inside those functions. See the following code to send mail using magento function: <?php  $mail = Mage::getModel('core/email'); $mail->setToName('Your Name'); $mail->setToEmail('Youe Email'); $mail->setBody('Mail Text / Mail Content'); $mail->setSubject('Mail Subject'); $mail- ...

Read more

Magento Developers’ Guide – Part 11: Events and Observers in Magento

1. Theory Event:  We can consider an event as a kind of flag that rises when a specific situation happens for example when the user presses the « pay » button of your website, it is an event. Your order has been registered? Here it is an event too. You can read more about Events in Magento here. Observer:  An Observer is also called « Listener » he will listen to your program to detect events. When there is ...

Read more

How to add search by category in magento mini search

There is no free extension in magento commerce which will help you to search your store with particular category. But you can do as following: First create the drop down list of all category in form.mini.phtml <select name="category" id="category_search_field"> <option value="">-- Any Category --</option> <?php foreach ($catalog->getStoreCategories() as $_category): ?> <?php if ...

Read more

How to convert multi-select field to checkbox in advanced search form of Magento?

Today, Magento Tutorial will discuss with you how to convert multi-select field to checkbox in advanced search form of Magento. Step 1: Copy the following file to your working theme: app/design/frontend/[interface]/[theme]/template/catalogsearch/advanced/form.phtml Step 2: Open the form.phtml (from above) and find the following line just after the case ‘select’: ?> <div class="input-box">     <? ...

Read more

How to filter payment method in one page checkout?

There are several way to filter payment method in one page checkout: By overriding template: app/design/frontend/[interface]/[theme]/template/checkout/onepage/payment/methods.phtml By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::_canUseMethod()  By overriding method: Mage_Payment_Model_Method_Abstract::isAvailable()  By overriding method: Mage_Checkout_Block_Onepage_Payment_Methods::getMe ...

Read more

How to hide other shipping methods when free shipping is enabled

When free shipping method is enabled, it is shown along with other available shipping methods unlike free payment method ‘Zero Subtotal Checkout’. There is no harm in showing other payment methods along with free shipping method. Nevertheless some merchants wants to hide rest of the methods when it is enabled. There are many ways to do it. One of the way is to override the method: Mage_Checkout_Block_Onepag ...

Read more

Magento developers’ guide – Part 8: Rewrite/modify a Magento block

Today, Magento Tutorial will show you how to change a basic block of Magento. When you do this kind of modification, it is better to keep in mind one of the basic rules Magento development: - You can not edit in the files in/app/code/core. Instead, we will overload this Block, create a class that will extend this core Block and rewrite only the part you want to change. Then, in order to use it, declare your ...

Read more

How to update all products inventory to use config settings

Magento Tutorial now will show you a solution for a Magento problem. When you imported products for your Magento site. Somehow, all products do not use default settings for inventory anymore. Each product has its own configuration for inventory, like below picture: In this case, it causes some problems for his site when creating orders in back-end. It will displays this error message: "The stock item for Pr ...

Read more
Scroll to top
" "