{"id":61,"date":"2011-01-12T23:54:00","date_gmt":"2011-01-12T23:54:00","guid":{"rendered":"http:\/\/www.codeboss.in\/web-funda\/?p=61"},"modified":"2011-01-12T23:54:00","modified_gmt":"2011-01-12T23:54:00","slug":"magento-how-to-get-all-the-products","status":"publish","type":"post","link":"https:\/\/codeboss.in\/web-funda\/2011\/01\/12\/magento-how-to-get-all-the-products\/","title":{"rendered":"Magento &#8211; How To Get All the Products"},"content":{"rendered":"<p>To fetch all the products in Magento you can use the below code &#8211;<\/p>\n<pre class=\"brush:php\">$prodobj = Mage::getResourceModel('catalog\/product_collection')-&gt;getData();<br \/><\/pre>\n<p>$prodobj is an array which will contain all the products, each as an array. The values returned for the products are &#8211;<\/p>\n<p>Array(<br \/>     [entity_id] => 1<br \/>     [entity_type_id] => 4<br \/>     [attribute_set_id] => 4<br \/>     [type_id] => simple<br \/>     [sku] => product-a<br \/>     [has_options] => 0<br \/>     [required_options] => 0<br \/>     [created_at] => 2011-01-12 19:01:24<br \/>     [updated_at] => 2011-01-12 19:01:24<br \/>)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To fetch all the products in Magento you can use the below code &#8211; $prodobj = Mage::getResourceModel(&#8216;catalog\/product_collection&#8217;)-&gt;getData(); $prodobj is an array which will contain all the products, each as an array. The values returned for the products are &#8211; Array( [entity_id] => 1 [entity_type_id] => 4 [attribute_set_id] => 4 [type_id] => simple [sku] => product-a&hellip; <a class=\"more-link\" href=\"https:\/\/codeboss.in\/web-funda\/2011\/01\/12\/magento-how-to-get-all-the-products\/\">Continue reading <span class=\"screen-reader-text\">Magento &#8211; How To Get All the Products<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[54,57],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-magento","tag-php","entry"],"_links":{"self":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":0,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeboss.in\/web-funda\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}