Posts Tagged: PHP
-
Dec 22, 2009
8 CommentsGet all options of select or multiselect attribute in Magento by attribute code
One of the things that a Magento developer deal, time and again is finding out all the options of color or manufacturer or size attribute. You may also need to find out what are the options available for color attribute before you add new option programmatically. Or you may need to add assign the option’s...
-
Dec 21, 2009
1 CommentShowing Breadcrumbs Anywhere in Magento
In Magento, by default there is a reference place where breadcrumbs get showed, that is just above the content reference! But, sometimes you need to show the breadcrumbs twice! above and below the content. Or sometimes you just need to show the breadcrumbs inside the content, due to some designing issue! I’ve gone through these...
-
Dec 11, 2009
No CommentsDebugging Technique in Magento – Chapter 1 :: Debugging Layout
I’ve been working in Magento, for 1 year now! During this whole year I have learnt a lot, and have been sharing my learnings through this Blog. One of the thing that strikes me a lot is the debugging technique. My collegue ask me a lot regarding Debugging Modules Functionalities, Debugging Module’s Layout and its...
-
Dec 09, 2009
1 CommentAdding 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, I thought why not share with...
-
Dec 08, 2009
1 CommentUsing 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 if you are new to Models & Collection in Magento). But...
-
Dec 04, 2009
2 CommentsGeneral 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 and came up with following...
-
Nov 25, 2009
1 CommentConverting 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 should be in American Typewriter Font with the option of...
-
Nov 20, 2009
4 CommentsAdding Related Product and other links to Product in Magento
Here is a simple way of adding product link such as Related, Upsell and Crosssell Link to a product in Magento. I just got the way of doing this and thought to share! So kind of me ...
-
Oct 26, 2008
7 CommentsNewsletter Email Tracking: Read or Not?
I have completed first phase of a simple, yet useful Newsletter System. When I demonstrated to the clients, they came up with a question if the newsletter being send was opened or not by the newsletter subscribers ? I then thought.. let see how its done. Then I came with this simple tracking trick, most...
-
Jul 22, 2008
2 CommentsAjaxified File Uploader Using IFrame
Today, while writing a code for AJAX file uploader, I was trying to do with [wiki]SALAJAX[/wiki]. But, with SALAJAX I could not manage to send the headers for $_FILES. So I thought of an alternative. And the alternative was to load the action page of the form on [wiki]IFrame[/wiki], whose display would be hidden and...