Magento:How to use ExtJs in Magento

Magento Module Development : ExtJs is a wonderful library for the RIA(Rich internet applications) , but to use in the magento is little tricky .

How to include


    

    
    

    

In most of the cases extjs gives the data in JSON format , we can use that data in this way in magento

foreach ($collection as $product) {

$Product = Mage::getModel('catalog/product');
$Product->load($product->getId());
$i++;
echo '[true,  false, '.$i.',  "'.$Product->getName().'", '.$Product->getPrice().', "'.$Product->getImageUrl().'", "'.$Product->getProductUrl().'", "", "", , ],';  

enjoy :)

Facebook Twitter Digg Reddit Stumbleupon

Related Posts:

  • No Related Posts

No related posts.

Posted on 13 December '10 by , under Magento.








*

Read previous post:
Joomla 1.6 Module development

Joomla 1.6 is phenomenal in ACL and tons of other feature .Joomla 1.6 module development is little tedious caz of...

Close