You Are Here: Home » Magento tutorials (Page 5)

Wide range of magento tutorials for every magento user

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

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

Inserting your block into any place in Magento

Hi, Now Magento Tutorial will show you how to insert block into any place you want in Magento. As you know, very often we need to set some block into selected weird place without editing template, so we’ll try to describe the way how to do this using layouts and observers.In our case, for such experiments will be used category page. Let’s say, you need to place your block inside the other one and this block ...

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 create fancy FAQ page in Magento?

Today, Magento Tutorial will show you the way to create fancy FAQ page with expandable/collapsible feature in an easier approach. In fact, creating a fancy magento FAQ pagesection can be easily achieved in Magento by using CMS page & jQuery. Go to Admin > CMS Pages > Add New Page and implement the following steps: Step 1: Add FAQ contents Add the following content in the ‘Content’ > ‘Content’ s ...

Read more

Magento tutorial: Magento Global Functions

Today, Magento Tutorial will introduce you some functionality of Magento left there by core programmers, which is used extensively by the system and yet often overlooked by us, shop maintainers and extension developers. Some of its functions may be of little use when developing extensions, since they do core system work. But some can come in handy whenever a trivial task presents itself and you have to: 1. ...

Read more

Magento Developers’ Guide – Part 10: Rewrite to modify a Magento controller

How to make a rewrite of a controller ? Because your module will not know where to search for your extended class…you have to make a require in your controller. require_once "Mage/Checkout/controllers/CartController.php"; This gives you something like: require_once "Mage/Checkout/controllers/CartController.php"; class Pfay_Checkout_CartController extends Mage_Checkout_CartController {     # Rewrite of index ...

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

Magento Developers’ Guide – Part 9: Rewrite to modify a Magento Model

Today we will extend a Model, this may be useful sometimes so you need to know how to do it. This can be useful for exemple, if you want to change the method getName() of a customer. 1. How to rewrite a model? Let’s start from the plugin MyProduct you have made in the previous tutorials and extend it model. class Pfay_MonProduit_Model_Customer  extends Mage_Customer_Model_Customer {   public function getNam ...

Read more
Scroll to top