Hi i have got the particular *product* array from my code for a particular product id , i want to get all *products array*…..
my code is
**<?php
@ob_start();
@session_start();
ini_set('display_errors', 1);
//for order update
include '../../../../app/Mage.php';
Mage::app('default');
echo '<pre>';
if(isset($_REQUEST['productid'])){
$productId = $_REQUEST['productid'];
}else{
$productId = '12402'; // product ID 10 is an actual product, and used here for a test
}
$product = Mage::getModel('catalog/product')->load($productId); //load the product
echo 'product_id '.'=>'.$product->getId().'<br/>';
?>**
You want WHAT? $product is no array, it is an object. If you want to have all products you can use this code: