Extend product_media.list API to retrieve images always from configurable product

Don’t you think updating the same contents like media images and other attributes in all simple products of a configurable product is an overhead? For easier management, it’s better to update frontend visible data only in the configurable product. But this may lead missing of data if someone makes an API call for a simple …

Read more

Magento: Set product attribute values to take values from the default store

Have you ever ticked a ‘Use Default Value’ checkbox for Price (in store view level) and noticed the changes in the database? If you tick the ‘Use Default Value’ checkbox for any product attribute (say Price) in store view level and save it. This will delete the related row in the database for that attribute, …

Read more

Sending shipment email when tracking info is added

From the topic of this blog post, it’s clear that we are going to discuss on ‘How to send shipment email when tracking info is added to the system?’ This may be useful if carrier tracking info is pushed to Magento by some third party system and want to send shipment email. As usual, instead …

Read more

Product List: Show out of stock products in the last

In this blog post, we will be sharing how to show out of stock products at last of product listing page. Assumption: MagePsycho_Productsort is the skeleton module Steps: 1. Register event: catalog_product_collection_load_before File: app/code/local/MagePsycho/Productsort/etc/config.xml … <frontend> <events> <catalog_product_collection_load_before> <observers> <magepsycho_productsort_catalog_product_collection_load_before> <type>singleton</type> <class>magepsycho_productsort/observer</class> <method>catalogProductCollectionLoadBefore</method> </magepsycho_productsort_catalog_product_collection_load_before> </observers> </catalog_product_collection_load_before> </events> </frontend> … 2. Implement the observer model: File: …

Read more

Extend Magento sales order grid using event observer

You can add new columns to the Sales Order grid easily by extending the block class: Mage_Adminhtml_Block_Sales_Order_Grid But this is not the preferred way due to conflict issues. Here I will show you how to extend order grid by using events(core_block_abstract_to_html_before & sales_order_grid_collection_load_before) only. For example purpose, we will be adding Payment Method to sales …

Read more