<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Get Product ID and Product Name in Magento</title>
	<atom:link href="http://blog.decryptweb.com/product-id-and-product-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.decryptweb.com/product-id-and-product-name/</link>
	<description>Open Source Web Solutions</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:01:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: DWRoot</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1386</link>
		<dc:creator>DWRoot</dc:creator>
		<pubDate>Tue, 31 Jan 2012 08:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1386</guid>
		<description>@Peter - If you are creating a new product, you need to setId to null, or if you are editing the existing product, you need to load the product first, hope this helps you.</description>
		<content:encoded><![CDATA[<p>@Peter &#8211; If you are creating a new product, you need to setId to null, or if you are editing the existing product, you need to load the product first, hope this helps you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1385</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 30 Jan 2012 17:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1385</guid>
		<description>I would like to change some data and save the article.

I used method 2 from the post above and added:

$model-&gt;setName(&#039;TestTestTest&#039;);
$model-&gt;save();

I expected the product name to be changed and saved into the db. But instead, I get the error:

PHP Catchable Fatal Error: Argument 3 passed to Mage_Catalog_Model_Resource_Abstract::_canUpdateAttribute() must be an                  array, null given, called in /home/passionfrance.de/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 1225 and defi                 ned in /home/passionfrance.de/public_html/magento/app/code/core/Mage/Catalog/Model/Resource/Abstract.php line 543

Has anyone hints for me?

Best regards,
Peter</description>
		<content:encoded><![CDATA[<p>I would like to change some data and save the article.</p>
<p>I used method 2 from the post above and added:</p>
<p>$model-&gt;setName(&#8216;TestTestTest&#8217;);<br />
$model-&gt;save();</p>
<p>I expected the product name to be changed and saved into the db. But instead, I get the error:</p>
<p>PHP Catchable Fatal Error: Argument 3 passed to Mage_Catalog_Model_Resource_Abstract::_canUpdateAttribute() must be an                  array, null given, called in /home/passionfrance.de/public_html/magento/app/code/core/Mage/Eav/Model/Entity/Abstract.php on line 1225 and defi                 ned in /home/passionfrance.de/public_html/magento/app/code/core/Mage/Catalog/Model/Resource/Abstract.php line 543</p>
<p>Has anyone hints for me?</p>
<p>Best regards,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DWRoot</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1366</link>
		<dc:creator>DWRoot</dc:creator>
		<pubDate>Tue, 17 Jan 2012 05:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1366</guid>
		<description>@Matheus - You can use &#039;underscore&#039; in a variable name, its a common practice used in Magento</description>
		<content:encoded><![CDATA[<p>@Matheus &#8211; You can use &#8216;underscore&#8217; in a variable name, its a common practice used in Magento</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matheus</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1362</link>
		<dc:creator>Matheus</dc:creator>
		<pubDate>Mon, 16 Jan 2012 16:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1362</guid>
		<description>Hey, what u use $_product (variable name) instead of $product ... (without &quot;_&quot; ... underline) ??</description>
		<content:encoded><![CDATA[<p>Hey, what u use $_product (variable name) instead of $product &#8230; (without &#8220;_&#8221; &#8230; underline) ??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saumil</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1277</link>
		<dc:creator>saumil</dc:creator>
		<pubDate>Fri, 16 Dec 2011 11:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1277</guid>
		<description>thanks fro posing this post great work</description>
		<content:encoded><![CDATA[<p>thanks fro posing this post great work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DWRoot</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1268</link>
		<dc:creator>DWRoot</dc:creator>
		<pubDate>Tue, 13 Dec 2011 15:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1268</guid>
		<description>@saurabh - You can refer this post on my blog for API and Product Listing - &lt;a href=&quot;http://blog.decryptweb.com/magento-soap-api/&quot; rel=&quot;nofollow&quot;&gt;Magento SOAP API&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>@saurabh &#8211; You can refer this post on my blog for API and Product Listing &#8211; <a href="http://blog.decryptweb.com/magento-soap-api/" rel="nofollow">Magento SOAP API</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurabh</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1267</link>
		<dc:creator>saurabh</dc:creator>
		<pubDate>Tue, 13 Dec 2011 10:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1267</guid>
		<description>i want to fetch product details from magento using API in our project. user will enter API, username, all product of magento should be fetched.
any one can help me for this.</description>
		<content:encoded><![CDATA[<p>i want to fetch product details from magento using API in our project. user will enter API, username, all product of magento should be fetched.<br />
any one can help me for this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DWRoot</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1185</link>
		<dc:creator>DWRoot</dc:creator>
		<pubDate>Thu, 01 Dec 2011 04:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1185</guid>
		<description>@khamar - Use this code
[php]
&lt;?php $pid = $row[&#039;product_id&#039;]; ?&gt;
&lt;a href=&quot;#&quot; onclick=&quot;setLocation(&lt;?php echo $pid ?&gt;,1)&quot;&gt;&lt;img src=&quot;&lt;?php echo $this-&gt;getSkinUrl(&#039;images/add-to-cart-btn.jpg&#039;) ?&gt;&quot; alt=&quot;Add to Cart&quot;/&gt;
[/php]</description>
		<content:encoded><![CDATA[<p>@khamar &#8211; Use this code</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php $pid = $row['product_id']; ?&gt;
&lt;a href=&quot;#&quot; onclick=&quot;setLocation(&lt;?php echo $pid ?&gt;,1)&quot;&gt;&lt;img src=&quot;&lt;?php echo $this-&gt;getSkinUrl('images/add-to-cart-btn.jpg') ?&gt;&quot; alt=&quot;Add to Cart&quot;/&gt;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: DWRoot</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1180</link>
		<dc:creator>DWRoot</dc:creator>
		<pubDate>Wed, 30 Nov 2011 14:05:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1180</guid>
		<description>@khamar - Your code is incorrect, without PHP quotes you are using the PHP  variables, check any core Magento view( phtml) files for reference</description>
		<content:encoded><![CDATA[<p>@khamar &#8211; Your code is incorrect, without PHP quotes you are using the PHP  variables, check any core Magento view( phtml) files for reference</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Khamar</title>
		<link>http://blog.decryptweb.com/product-id-and-product-name/comment-page-1/#comment-1179</link>
		<dc:creator>Khamar</dc:creator>
		<pubDate>Wed, 30 Nov 2011 13:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.decryptweb.com/?p=122#comment-1179</guid>
		<description>hi

  &lt;a href=&quot;#&quot; onclick=&quot;setLocation(&#039;$row[&#039;product_id&#039;],&#039;qty&#039;=&gt;1) ?&gt;&#039;)&quot;&gt;&lt;img src=&quot;getSkinUrl(&#039;images/add-to-cart-btn.jpg &#039;) ?&gt;&quot; alt=&quot;Add to Cart&quot;/&gt;


i using this code redirect the add to cart page but product_id through not display ..
so 
pls help&gt;&gt;???</description>
		<content:encoded><![CDATA[<p>hi</p>
<p>  &lt;a href=&quot;#&quot; onclick=&quot;setLocation(&#039;$row['product_id'],&#8217;qty&#8217;=&gt;1) ?&gt;&#8217;)&#8221;&gt;&lt;img src=&quot;getSkinUrl(&#8216;images/add-to-cart-btn.jpg &#8216;) ?&gt;&#8221; alt=&#8221;Add to Cart&#8221;/&gt;</p>
<p>i using this code redirect the add to cart page but product_id through not display ..<br />
so<br />
pls help&gt;&gt;???</p>
]]></content:encoded>
	</item>
</channel>
</rss>

