Posts Tagged: PHP
-
Aug 11, 2010
No CommentsDisplaying Currency code after the price value in Magento
I had a time to research on Magento’s currency format and its display on Magento webshop. I then came across a block where I could change the format of currency display, in this case I am talking about moving the currency symbol to the right of the price value. In other words I found a...
-
May 13, 2010
1 CommentAnalysis & 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 04, 2010
No CommentsSolution: 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...
-
Mar 30, 2010
No CommentsRedirect to some other location from Model or Observer in Magento
Redirection in Magento’s controller is simple. You just need to call a _redirect() or _forward() function and provide appropriate router/controller/action parameter. But if you want to redirect to some other page from Model or from Observer, then this can be tricky. Lets take an example, for explaining what I am referring to, Suppose you are...
-
Mar 24, 2010
1 CommentGenerating Backend-Admin URL with Key and Parameters in Magento
When you log into adminstrator part of the Magento webshop, and look into the url you may see something like...
-
Mar 16, 2010
4 CommentsMagento Module Release: Uses Layout To List Post, made by AW Blog, on the basis of Category Identifier
I’ve always wanted to contribute something in Magento Community and I think today the day has arrived. The module is named as Sirius Blog Helper, just a name, Who cares about the “Name” unless it works . The basic function of the Module is to list the post made via AW Blog extension, categorized...
-
Mar 12, 2010
No CommentsCreating Product Links in Magento Using Custom Query
I’ve already made a post in this blog about Adding Related Product and other links to Product in Magento . But when I used the method to creating links among product’s, while importing very large number of products and creating large number of product links, it took a lot of time and resource. So I...
-
Mar 11, 2010
4 CommentsCreating Collection of Objects in Magento using a “Magical Class”:Varien_Data_Collection
Have you ever wondered how Collection in Magento are built, containing array of individual Entity Objects of Magento? Collections are one of the most important data structure (if I am right) used in Magento. Most of the queries in Magento will result into collection, and then you will apply a foreach loop to access individual...
-
Mar 10, 2010
4 CommentsGetting 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 to it as well. Next thing, I’ve tried a lot...
-
Mar 02, 2010
No CommentsCreate and Download XLS Report file using Magento’s Core
Reporting can be a very important part of the Module you might be developing for Mageneto. If you are showing your data in Grid that’s good, but it will be better if you add XLS file generation action on that grid, so that the site administrator can see the report in paper. And if you...