Showing posts with label magento. Show all posts
Showing posts with label magento. Show all posts

Tuesday, May 29, 2012

How to create a simple "Hello World" module in Magento?


How can the following be accomplish in Magento?





  • Display a "Hello World" message using a controller/view/model approach. So, if I went to http://mysite.com/myController it would show the string 'Hello World'. Being able to show this string within the template of my website (for example, the header, footer, etc.) will be a bonus.



Tuesday, May 15, 2012

Thursday, May 10, 2012

Accessing custom options of an order in Magento via PHP


I'm loading an order like this:




$order = Mage::getModel('sales/order')->load(2886);
$items = $order->getAllItems();

Wednesday, May 9, 2012

Why is the Relation Between a Configurable Product and a Simple Product Stored Twice?


Deep dive on the Magento internals here, not looking for a solution to a concrete problem, just trying to understand some implementation details.

Monday, April 23, 2012

Format of Exported Reflection Class in PHP?


Every Object in PHP's Reflection hierarchy has a static export method. You can can use this to get a string representation of a class. Code something like this

Monday, February 20, 2012

photo upload field error in magento


Below i have added the code to upload photo. Well i have added photo upload in edit.phtml page only but in register.phtml magento showing error. Can anyone fix it ?

Friday, January 13, 2012

How to check an already existing record in Magento?


I am trying to perform an SQL query kind of thing where I need to check if my database table contains a particular record or not. If it does, do nothing else add the record which isn't present.

Wednesday, January 11, 2012

Magento Best Way to Call Modalbox After Item is Added to Cart


I'm looking for a way to call a Modalbox (http://okonet.ru/projects/modalbox/index.html) after a customer has added an item to a cart...