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

Change shipping price & handling fee on the fly in Magento

Problem: How do I change shipping prices and handling fees on the fly? You may want to have different shipping prices for different scenarios. Your scenario could be any of the following: Different shipping price based on the shipping address Different shipping price based on weight Different shipping price based on categories Different shipping price …

Read more

Sending JSON data to the remote server

Sending JSON data to the remote server

JSON: JavaScript Object Notation. JSON is syntax for storing and exchanging text information. Much like XML. JSON is smaller than XML, and faster and easier to parse. You may need to post JSON data to the server for different purposes. If you are wondering about ‘How to send JSON data to the remote server?’ then …

Read more