LinkedIn Twitter RSS Reset

Getting Ordered Items and their Detail from Order ID in Magento

Here is a small snippet of code, yet useful, to get ordered items and its details. I’ve deviced this code a lot before and posted in Magento Commerce’s Forum as well. But felt like writting it again, so that I can have a quick refrence...

Getting Customer's Info Using Single Query Including Billing and Shipping Addresses

Query in Magento can be quite troublesome, if you are a starter..or non-starter. So I’ve tried to share some of the difficult queries using collection in Magento, so that it will be helpful to my blog readers and also a place where I can...

Getting Configurable Attributes (Super Attributes) of a Configurable Product

In one of those time when you need to know what attributes of a product is used to make the current configurable product “configurable”, then here it goes Those configurable attributes are called as “Super Attributes”....

Creating Custom Sourced Multiselect Product Attribute

Creating Multiselect type of product attribute whose source will be the Magento’s core tables is pretty simple. Just go to Manage Attributes and create a new one. But if you want the attribute’s source table be a custom table, then...

Creating Block From the Code in Magento

Here are some methods of creating block by code in Magento. This type of code can be used directly in template, not need to create a layout file or add a child node inside already existing layout file. You can use this to echo a different type...

Adding custom options to a product in Magento

Adding custom option in Magento is pretty easy! You just need to know the format of an array, which is taken by catalog/product_option Model to set the custom option. I’ve deviced a simple function (setCustomOption) that just does that....

Adding Tabs in Product View Page Through Layout In Magento

One of my new colleague, today asked me how to add tabs in product view page in Magento. He told me earlier he had used his own tabs CSS and Javascript to do, but now he found out that Magento gives default Tab Javascript to do the same. Then,...

Using Custom Query in Magento

Magento has given us very good features to manage Models and Collection for interacting with Database tables. Nowonder, they are very helpful in most of the cases. Yet, we may need to write custom query in some cases (if you need it quick or...

General Workflow of Magento's Import/Export – Dataflow

Magento’s Dataflow (Inport/Export) is one of distinguishing feature that makes Magento the leader in eCommerce Software. But for a programmer to understand how it workes in Magento can be quite nasty. I tried to understand how it workes...

Converting Text to Image in PHP formatted by alignment

During one of my project works I came across a situation like changing the input of TINYMCE editor to image. Can you believe what can be the user’s requirement? Basically what the client needed was to change the text to image and text...