Archive: Magento
-
Jul 29, 2011
Comments OffHow to Install Sample Data for Magento?
// // // ]]>Remember that, Sample Data must be installed prior to the basic Magento Installation. But never mind if you forgot to install sample data before installing Magento. Here, I will show you how you can install sample data after you have installed Magento. 1) Download Sample Data zip file from Magento Website 2)...
-
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...
-
Nov 09, 2010
Comments Offall Post of ajax javascript php magento jquery and all web developement related tutorials
Sleek and Smooth animated menu using jQuery by Bagesh singh 1 person liked this Today, I’m going to show you something interesting with jQuery. Yesterday I was thinking something to post something programming related stuff in blog after long time and I came across a website, whose menu impressed me a lot. But checking it...
-
Oct 14, 2010
Comments OffMagento: Setting Up a Default Shipping Method on Cart Page
I recently came to a situation where I need to show a shipping price amount on cart before selecting the shipping address from the checkout page. Basically shipping price is shown after the user has added the shipping address and selected the shipping method. So to show shipping price on cart page load, I needed...
-
Oct 14, 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...
-
Oct 14, 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 OffAjaxified 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...
-
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 OffConverting 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...