Posts Tagged: tricks
-
Aug 12, 2010
No CommentsWorking with Ajax and JSON Objects in Magento [Case: Ajax Powered Login Functionality]
Previously I have written about Working With Ajax in Magento. And after a huge response I received from that post I was compelled to write more on implementing Ajax in Magento. And this time I want to say additionally about handling JSON (JavaScript Object Notation) along with Ajax, within the Magento enviornment. JSON Objects and...
-
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...
-
Jun 09, 2010
1 CommentMagento: Creating Ajax Updated Tabs In Frontend, Like Product Management Tabs of Backend
Magento’s Product Management GUI in back-end has Tabbed Navigation. There are two types of Tabs implemented there. One type of Tab is normal tab, loading content on page load while other type of tab has its content loaded by “Ajax”. Another interesting thing to note is that once the Ajax loaded tab’s content is loaded...
-
May 06, 2010
No CommentsMagento 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. I’d tried this in Enterprise Edition as well and it...
-
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 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...
-
Jan 22, 2010
19 CommentsDebugging Magento Using Eclipse PDT & Zend Debugger
I had always thought of using Eclipse to debug Magento’s complex code flow, and tried number of times before. But without any success I had to abandon it, and thought was not applicable for Magento, remember the fox and the sour grapes I also tried using Trial Version of Zend Studio, but with...