Posts Tagged: Magento
-
Nov 22, 2010
Comments OffAdding CSS Class name to My Account Link (Anchor Tag) in Magento through XML Layout
At the first instance I thought WTH! must be pretty simple, add params in XML layout and “Voila!“. But later I found that it was not simpler as I thought. I had to get into the addLink method for sometime (1/2hr) and finally I came up with correct structure of XML layout. At the end...
-
Nov 22, 2010
Comments OffAdding Custom Javascript on Admin form in Magento (Backend)
Sometimes in Magento, while creating a custom module we need to add our custom Javascript code in our Admin form. These Admin forms we create are extened from the Magento’s core form widget. So there is a less flexibiliy of adding a custom Javasccript code in such types of Admin forms. What to do if...
-
Oct 11, 2010
Comments OffMagento – url functions
Magento had some very handy functions that easily allow you to find some fundamental urls of your site from your phtml files so you can avoid hardcoding them. These are: $this->getBaseUrl() – returns the base url of your store (funnily enough) $this->getSkinUrl() – returns the url of the folder containing your css, images and local...
-
Oct 11, 2010
Comments OffHow to add Sitemap to a Magento Site
Most of you must be knowing the importance and use of Sitemaps on your websites, but let me make it clear for those who dont know, how a sitemap helps for the rapid boost of your website. Well, Sitemaps are tree like structure blocks, which can fetch all of your pages and list on one...
-
Oct 11, 2010
Comments OffRetrieve products with a specific attribute value in magento
Almost all Magento Models have a corresponding Collection object that can be used to fetch multiple instances of a Model. To instantiate a Product collection, do the following $collection = Mage::getModel(‘catalog/product’)->getCollection(); Products are a Magento EAV style Model, so you’ll need to add on any additional attributes that you want to return. $collection = Mage::getModel(‘catalog/product’)->getCollection();...
-
Jun 30, 2010
Comments Off
-
May 21, 2010
Comments OffAnalysis & Usage of Collections in Magento
As a Magento Programmer I am fascinated by the use & simplicity of collection used in Magento. Simplicity, does not really mean being simple (it is rather complex structured) but easy to use. With the help of one of my colleague, I got down to understand how collection really represents the “collection” of data we...
-
May 21, 2010
Comments OffMagento eCommerce: How To Reset All Test Order Information and Set Unique Prefix For Orders, Invoices, Shipments, and Credit Memos
Nice Post I stumbled upon.. from www.eliasinteractive.com. This is a very helpful hack Lee has posted to reset order information while moving from development stage to production stage....
-
May 21, 2010
Comments OffSolution: Error Message Not Showing up in Frontend in Magento
I recently got to a situation where I needed to add a new frontend template for some module and after some action show the error or success message. Not the first time though . Interesting thing was even if I added this code in the PHTML file. ? 1 2 3 <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>...
-
Apr 07, 2010
Comments OffHow to get Query as a String in Magento?
Magento as you might know or not! has really a very PIA (Pain in the A**) type of methods to create SQL, execute and fetch! There are two ways of getting SQL from the collection of Magento. Here are the two ways. 1. Only Echoing Query String. For just echoing the query string you must...
-
Apr 07, 2010
Comments OffWorking with AJAX in Magento
Ajax in Magento can be pretty troublesome.Because you will need to take controllers and layout into account.And I almost used up a whole day trying to make ajax work. Here are some of the steps...
-
Apr 07, 2010
Comments OffAdding 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 01 /** 02 First Create Link Array of following type 03 **/ 04 05...
-
Apr 07, 2010
Comments OffProduct Import In Magento Alongwith Updating The Attribute
As you may know or not ! Magento is the fastest growing eCommerce plateform, nowonder because Magento has a lots of flexibility in it. You can feel that too if you are a just a user and as for me as Programmer I just Love it. One of the salient feature that makes Magento a...
-
Apr 07, 2010
Comments Off
-
Apr 07, 2010
Comments OffUsing 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...
-
Apr 07, 2010
Comments OffUsing 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...
-
Apr 07, 2010
Comments OffAdding 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...
-
Apr 07, 2010
Comments Off
-
Apr 06, 2010
Comments OffCreating Custom Sourced Multiselect Product Attribute
Creating Multiselect type of product attribute whose source will be the...
-
Apr 06, 2010
Comments OffUsing Custom Table for Custom Module in Magento
If you want to create a custom module in Magento that has something to do with storing data into a custom table and using that later, then this is just the right post you have bumped into! I will presume that you already know about Models in Magento, what are they and how you can...